Forums

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

Can I create a condition to require a field be populated based on another field?

Sara Angel
Contributor
June 2, 2023

Hi, I have read some posts but not finding an answer. We setup validators for fields but I am looking to have a field required based on the input from another field. 
Example:  If the Automation Status field = Manual, then require the Non Automatable Reason field to be populated. If Automation Status is set to anything other than Manual it does not require it. Anyone know if this is possible without a plugin? Thanks

2 answers

2 accepted

2 votes
Answer accepted
Mikael Sandberg
Community Champion
June 2, 2023

You would need an app in order to do this, like Scriptrunner or Power Scripts. I know from experience that Scriptrunner has a function that would allow you to make fields required based on values in another field.

Sara Angel
Contributor
June 2, 2023

@Mikael Sandberg Thank you!

Like Mikael Sandberg likes this
0 votes
Answer accepted
Thorsten Letschert _Decadis AG_
Community Champion
June 20, 2023

Hi @Sara Angel ,

This is probably not doable without an app. Speaking of another option, Jira Workflow Toolbox, there is a way to include conditional logic as shown in this example: https://apps.decadis.net/display/JWTCLOUD/Make+a+field+required+only+for+stories

For you, the condition would not be run against the issue type, but your "Automation Status" custom field.

Cheers,
Thorsten

P.S. I'm part of the team behind the aforementioned app.

Sara Angel
Contributor
June 20, 2023

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events