🆕Introducing WHEN -> THEN clauses

Easily make Jira fields required conditionally with Ultimate Validator’s WHEN → THEN clauses. Simplify Jira workflow rules by combining multiple field requirements into one validator.

The Ultimate Validator has been upgraded to make it easier than ever to require fields conditionally, based on issue content.

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.

Jira Ultimate Validator setup example showing old approach to make a field required conditionally using OR logic

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:

  1. When optionB is selected

  2. Then require FieldB to be not empty

Jira Ultimate Validator setup example showing new approach to make a field required conditionally using When-Then logic

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.

Jira Ultimate Validator setup example showing new approach to make a field required conditionally using When-Then logic, where AND and OR conditions can be safely used between Then blocks

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.

Jira Ultimate Validator example showing how different sets of fields can be made required based on the selection of different options using When-Then logic

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.

Jira Expression Preview

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.

Last updated