Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Change Options in drop down based on another field value using behaviors

Hi Support,

we are using script runner and are trying to implement certain features using behaviours.

one such scenario is that based on the value in one dropdon controlling the values displayed in the second one. Literally a cascading dropdown effect is what we are looking at.

I searched quite a bit and was unable to find any decent article on how this can be acheived , is there a way to get this done?




1 answer

0 votes
Mirek Community Leader Aug 31, 2022

I think that this article might be helpful

There is a sample code that looks like this

def dropDown = getFieldById("customfield_10500")
def conditionA = getFieldById("customfield_10501")
def conditionB = getFieldById("customfield_10502")
log.debug("dropdown value" + dropDown.getValue())
if (dropDown.getValue() == "a") {
} else {

Also similar question here

Suggest an answer

Log in or Sign up to answer