Forums

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

Scriptrunner: Conditionally require a field when Editing another field

Ashley Honeycutt
Contributor
October 2, 2023

I have a single-select custom field (customField1). If a particular value (value1) is selected for the field, then three other custom fields (customField2, customField3, customField4) are also required. 

I have configured this as a validator on the Create transition, but we also need the validation for any time an issue is edited. It seems like a Behavior is the way to go here, but I'm not quite understanding how that would be configured.

Suggestions are greatly appreciated! Thank you!

1 answer

0 votes
Laurie Sciutti
Community Champion
October 2, 2023

Hi @Ashley Honeycutt ~ this might help:  https://stackoverflow.com/questions/70605182/make-fields-mandatory-based-on-other-field-value-groovy 

 

We did something similar with a server-side script (like in the link above) in a ScriptRunner Behavior.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events