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: 

Jira-misc-workflow-ex – How to validate a custom field value on a transition

Steven Baynes
April 21, 2022

Using Jira workflow extensions, how can I validate that a custom field has a particular value?

Example:

If Custom_Field1 = ‘Yes’, then allow the transition to occur, else don’t allow the transition.

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Ed Gaile _Atlanta_ GA_
Community Champion
April 21, 2022

If you are using JMWE, you can us the Scripted (Groovy) Validator and just define the custom field logic in the Groovy script section.

issue.getAsString("customfield_1234") == "Yes"

Steven Baynes
April 22, 2022

Our Jira instance does not have Script Runner (Groovy) installed. So would your suggestion work? We have PowerScript (SIL) installed. Thanks!