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?
Regards,
Shankar
I think that this article might be helpful
https://www.idalko.com/use-behaviour-functionality-script-runner-show-hide-fields/
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") { conditionA.setHidden(false); conditionB.setHidden(true); } else { conditionA.setHidden(true); conditionB.setHidden(false); }
Also similar question here
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.