How to make Cascading Drop-down child field mandatory only when parent has value?

Jira Dev
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!
February 18, 2025

Hello all, I need help in setting up a validation on Cascading drop-down custom field in a JIRA Data Center environment using ScriptRunner Behaviours. How to make a "child" part mandatory, but only if a "parent" has a value?

1 answer

Suggest an answer

Log in or Sign up to answer
0 votes
Ram Kumar Aravindakshan _Adaptavist_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 18, 2025

Hhi @Jira Dev

Welcome to the Community.

I have provided the exact answer to your requirement in this Community Post.

The solution provided in the link also uses ScriptRunner's Behaviour and performs a validation to ensure that both Parent and Child options are selected in the Cascade Select List.

I hope this helps answer your question. :-)

Let me know how it goes.

Thank you and Kind regards,
Ram 

Jira Dev
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!
February 18, 2025

Not all of my “parent” options have “child” values, so the script doesn’t work the way I need it to. It currently makes the “child” field mandatory for every “parent,” even when there are no child options available.

TAGS
AUG Leaders

Atlassian Community Events