Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Conditional section in form based on text field value

Sascha Bang November 14, 2024

Hi,

as far as I understand the instructions in this page, it is only possible to use selection lists for the conditions of conditional sections.

Instead, I would like to use the content of a hidden text field, which holds the user's organization name {{issue.Organizations.first.name}} as condition.

What I am trying to achieve is to show different sections in the form depending on the organization of the issue creator. The reason is that they have different names for the operating environments, on which bugs may occur that they want to report and which they should select from individual lists.

Therefore, I would like to show different selection lists for the environment for different users, based on their organization.

Is this even possible?

Thanks for any pointers,

Sascha

1 answer

0 votes
Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 14, 2024

Hi @Sascha Bang 

As mentioned in the documentation, this is correct.

Text based can't be conditional in a from.

By the way this is not possible as on creation the org field is not checked, based on the reporter is linked to an org, the issue will be related to an org.

Sascha Bang November 15, 2024

Thanks @Marc - Devoteam 

When the reporter logs in, we should know to which organzation he/she belongs, no? Can't I access that info somehow?

What other way could I go to achieve my goal of having individual elements in issue report forms for different organization?

 

 

Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 15, 2024

Hi @Sascha Bang 

You can start adding organizations, you will need to set them up and add your customers to the related organization.

Then you will see this information on the raised issues and you can set limitations on how customers can share issues

Sascha Bang November 15, 2024

I have set up three different organizations with different users in them. It's not about sharing issues between the users of the same organization, it's about the issue forms, in which I want to have individual fields for each organization.

Organization A for example has three environments "TEST, PRE-LIVE, PRODUCTION", but Organization B names their two environments "TENV and LIVE", while Organization C has completely different names "XE, XP and PROD".

Now, I want to present a different drop-down field in each organization's issue form, where they can select their respective environment.

So far, the only way would be to have the reporting user select the name of their organization from a list to display a conditional section. That's nuts. Because that way they would see the names of the other customers.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events