Forums

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

JMWE - Add a Condition to a Validator to check previous status

Jeanne Howe
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 Leaders.
March 23, 2022

We have a Required Field Validator on our workflow. We would like to add a condition to the Validator so that the field is required only if the previous status = Ready for Release.

 

How do I write a condition to look at the status the issue is transitioning from?

1 answer

0 votes
David Fischer
Community Champion
March 23, 2022

Hi @Jeanne Howe 

You can use this:

originalIssue.get("issuetype").name == "Ready for Release"

Suggest an answer

Log in or Sign up to answer