Jira adminstrators who are configuring advanced workflows, often ask the question, “Should I use a condition or validator in this scenario? Conditions and validators cause a fair amount of confusion, so in this blog post, I'll explain the difference. And to really clear things up, I've created a chart with some examples of when to use conditions.
Both Conditions and Validators will prevent an issue from transitioning if certain criteria aren’t met, so what’s the difference?
What is a workflow Condition?
- Conditions are processed PRIOR to executing the transition
- If the criteria isn’t met, the transition is hidden.
What is a workflow Validator?
- Validators are processed WHEN executing the transition
- If the criteria aren’t met, an error is shown, and the transition cannot be completed.
When to use a Condition vs. a Validator:
In almost all cases, I find myself using Validators over Conditions, with examples of the exceptions noted below.
I hope this information helps you when you're configuring workflows. Reach out to us today if you'd to learn more information on this topic!