Forums

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

How to restricting selection of multiselect fields and cascading fields using Behaviours

tistaroy1
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!
March 9, 2023

Hi,
I am looking for Scriptrunner code using Behaviours to restrict selection of two multiselect fields and one cascading field in Jira Server.
Basically, we want to control 4 selection of field values.

Lets say we have multi select fields called “Fruits” and “Vegetables” and a cascading field with parent selection “Countries” and child selection “States”, we want to restrict field values of “Countries” and “States” based on selection of “Fruits” and “Vegetables”.

Is it possible to acheive this kind of logical selection?

If yes, what is the code for such an logical selection.

1 answer

0 votes
Ram Kumar Aravindakshan _Adaptavist_
Community Champion
March 11, 2023

Hi @tistaroy1

To answer your question, this is not as doable as you expect.

You can use the Behaviour to filter the values from the parent list of the cascading list. However, the value of the child list cannot be filtered.

So, for example, in the Multi-Select List, you select a few options, and only the Countries from the Cascading List can be filtered, not the States.

I have given a similar solution in this community discussion.

I hope this helps to answer your question. :-)

Thank you and Kind regards,

Ram

Suggest an answer

Log in or Sign up to answer