Control Multi-Select values based on a single select field choice

Alex Cumberland
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.
May 13, 2020

JIRA Server 8.8.1

Script Runner: 5.9.1-p5

Have two custom fields on screen.  One is a "Select List (single choice)" for Customers and the second one is a "Select List (multiple choices)" for database regions.   I am trying to find a way for when selecting the customer from the single choice list that will then filter the multiple choice list with ones for that specific customer.

For example:

       Customer 1 would give me Region-UAT, Region-DEV, Region-PROD 

        Customer 2 would give me Region-A, Region-B, Region-C

So the regions would change as the customer in the single select would change and Customer 1 would not see Customer 2 regions and the reverse.

 

I have tried the options here but have not been able to get any of them to work:

 

https://library.adaptavist.com/entity/set-available-options-to-a-multi-select-list

https://community.atlassian.com/t5/Jira-questions/In-Jira-how-to-control-the-values-of-a-multi-select-field-based/qaq-p/1050353

 

 

1 answer

1 accepted

0 votes
Answer accepted
Alex Cumberland
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.
May 19, 2020

I finally got the example here to work.

https://library.adaptavist.com/entity/set-available-options-to-a-multi-select-list

 

Turned out the screen that the Custom Fields were on had a different displayed name from the name of the actually field.  Once I changed to use the field names as defined it would work.

 

So need to be extra careful when the names of the fields are the ones that you find under custom fields and not necessarily the ones on screen especially for service desk.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events