Forums

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

🚀 Ultimate Validator - Introducing WHEN -> THEN clauses

Exciting update! The Ultimate Validator now makes it super simple to require fields conditionally, based on what’s in your work item. Say goodbye to complicated setups! 🎉

This feature simplifies common scenarios such as:

  • Making a field required only if another field has a certain value.
  • Making different groups of fields required depending on the option selected.
  • Enforcing checkbox selection (e.g. consent checkbox) based on answers provided.

Why WHEN → THEN Clauses?

Previously, you could use the OR operator to simulate conditional logic. While functional, it required “reversing” the logic, which was not intuitive.

Example – old approach (using OR):

  • FieldA = single select.
  • FieldB should be required if optionB is selected in FieldA .
  • To configure this, you would:
    1. Check whether optionB is not selected.
    2. OR, if it is selected, check whether FieldB is not empty.

when_then_0_back.png

This works because the second clause (mandatory field) is only checked when the first clause is false. However, the logic is reversed, which makes it harder to read.

The New Approach: WHEN → THEN

With WHEN → THEN clauses, the same case can now be expressed naturally:

  • When optionB is selected
  • Then require FieldB to be not empty

when_then_1_back.png

Conditions separated by a THEN connector are wrapped in parentheses, allowing you to safely combine multiple requirements.

Example – multiple options:

  • Make two fields (FieldB, FieldC) mandatory if optionB or optionC is selected.

when_then_2_back.png


Chaining with AND WHEN Clauses

For more complex scenarios, you can chain multiple conditional blocks with AND WHEN

Example – different fields required for different options:

  1. FieldB is required WHEN optionB is selected.
  2. FieldC is required WHEN optionC is selected.
  3. FieldE is required WHEN optionD or optionE is selected.

 when_then_3_back.png

At the bottom of the configuration screen—just like in all our validators—you’ll find the Jira Expression Preview panel. This shows the exact Jira Expression generated from your setup, so you can confirm the validator does what you expect.

Now, with Ultimate Validator, you can combine all your field requirements into a single workflow validator or condition, making complex validations simple and easy to manage.

 


We hope you find this feature useful! We’d love to hear your thoughts and what you’d like to see next. If you have any ideas or suggestions for improvements, feel free to reach out to our support team.

Ultimate Validator is part of the Workflow Building Blocks for Jira app.

 

0 comments

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events