Workflow Transition Conditions/Validators

Kenisha Naidoo November 21, 2024

Hi Everyone, hope all is well.

I am trying to use a workflow validator "Field Required Validator (JMWE app)' Validator for this transition". The criteria I am trying to build around is that if the field "NDA/MSA Agreement Generated" {drop down custom field) equals "Yes" , it moves along in the workflow. If it is equal to "No", the error message must pop up at the top as shown here:
NDA Error.PNG
This is how I set it up:
Rule.PNG

The issue when I select "Yes", the error message is still popping up. Can someone assist me please. Or if there is another way to achieve this? I did use an automation rule which worked fine but I was given the instruction to use a validator instead.

1 answer

1 accepted

5 votes
Answer accepted
Alex Koxaras _Relational_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 22, 2024

Hi @Kenisha Naidoo 

Validator is the way to go, so you are on the right path.

Choosing that specific filed as required, means that this field must have a value, but it doesn't care if the users chooses "No" as well. I would use another validator instead of this one, the "script your own validator" and in it I would write:

if (issue.customfield_10919 == "Yes"){
true
} else if (issue.customfield_10919 == "No"){
false
}

 

Kenisha Naidoo November 22, 2024

Hi Alex, thank you so much for your input. Makes sense and it worked as well!

Alex Koxaras _Relational_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 22, 2024

Nice to hear that and I'm glad that worked out for you!

Suggest an answer

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

Atlassian Community Events