Forums

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

Dynamic Behaviour of select list (multichoice) customfield

SR
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 23, 2021

HI Experts,

In one of my jira project 

I have a "Teams" mutli select custom field where based on Values selected

I have 125 values in above field  and user selected lets say 4 values A,B,C,D

 

now i want to show the same field with same name or diff name in transition scree which should not show values which are selected in "Teams" i mean user should see only 121 values excluding A,B,C,D values which are selected in previous field "Teams"

 

Is there any way to do this 

1By addon

2.By scripting

3.any other

 

Any help is appreciated 

 

Thank you

1 answer

1 accepted

2 votes
Answer accepted
Hana Kučerová
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 23, 2021

Hi @SR ,

welcome to the Atlassian Community!

I can imagine doing this with the usage of ScriptRunner's Behaviours - you will need to have two custom fields with the same options and use .setFieldOptions to modify the options for the second field based on the values in the first field. But some scripting will be needed.

SR
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 23, 2021

@Hana Kučerová  Yea Thank you Hana was just wondering if this is even possible to write something.

if i use above way since we have 125 values does it need many lines of code with all combination of values or should it be simple?

Hana Kučerová
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 23, 2021

I believe it should be quite simple - like iterate through all the options and check if the current option should be added or not. 

Like SR likes this

Suggest an answer

Log in or Sign up to answer