I have two custom fields both are select list,
one is multi select list and another is single select list.
Multi select list field options are "A" and "B".
Single select list field options are "1","2","3","4","5","6".
Now my requirement is in multi select field if i select "A" i want these option from single select "1","2","3" have to visible to select.
same for
in multi select field if i select "B" i want these option from single select "4","5","6" have to visible to select.
if i select both "A" and "B" i want all 6 options have to visible
for your reference i attached screen shot below
How can i achieve this using script runner behaviours?
Thank you @David Freitez for your information
this is the script which is working fine for this requirement
Welcome to the Atlassian community. Good to know that you are already working with the Scriptrunner plugin which is based on GroovyScript.
There are some pages on their documentation that refer Dinamically hide/show a custom field in cloud (https://www.scriptrunnerhq.com/help/example-scripts/dynamically-hide-or-show-a-field-cloud) but this is refering to the entire field and not an specific option.
I see that there are several inquiries in the community regarding this and they point several solutions:
You would need to review these examples and apply the chosen solution and test it intensively. I also recommend that you raise a support request to Adaptavist so they can also provide some options.
Hopefully this helps you answer your inquiry, if so, please vote for it as the answer to your question.
Kind regards,
David
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Maruthi,
It is possible to achieve your requirement in Jira Cloud using the setOptionsVisibility() method that Behaviours in Jira cloud provides.
We have an example here that shows how to restrict field options when a value is selected in a multi-select list field. We also have an example here which shows how to check if a specific value was selected inside a select list field.
You can use these scripts as a reference guide to help create the script you require.
If you need further support, you should raise a request with the ScriptRunner support team, who can help create the script you require.
I hope this helps,
Regards,
Kristian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.