The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Laurie Sciutti
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
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.

DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events