Field is required Validator not on ticket types

Dave Ferguson April 25, 2019

How can I run the field is required validator only on certain ticket types.  For example, I need all tickets to have X field filled out unless it is a sub-task or an epic.

I think I need to do this via a groovy validator but not sure how to write it.

1 answer

0 votes
David Fischer
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 27, 2019

You can actually achieve this with the Field is Required Validator using the "conditional validation" option, with a conditional validation script like:

!(issue.getAsString("issuetype") in ["Epic","Sub-task"])

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events