---
title: "Conditioned validator"
canonical: "https://support.appfire.com/space/CW/69304604/Conditioned%20validator"
format: markdown
---
> Macro (aura-html)

# Description

**Conditioned Validator** is a validator that supports powerful regex pattern matching conditions including JQL query and [Substitution variables](https://appfire.atlassian.net/wiki/x/PoAhB) similar to the [Update issues](https://appfire.atlassian.net/wiki/x/CIEhB) and [Create on Transition for Jira](https://appfire.atlassian.net/wiki/spaces/CSOT) post functions. A JQL query can be useful to determine the existence of issues or to find specific issues to participate in the determination of whether to proceed with the transition.

The configuration of this validator is grouped into the following configuration settings tabs:

- *Conditions & Configuration *- Allows you to define one or more conditions, each of which must be satisfied (true) for the transition to proceed. If not, an error message is displayed to the user.
- *Messaging* - Allows you to enter useful information for the user or notes for the administrator about the validator.

> ✅ ### Variables used in validators
> ✅ 
> ✅ Validators are more likely to use the **transition** variables to access the screen values since the issue field values still represent the former values. Use **original** to prefix substitution variables not on the transition screen and **transition** to prefix substitution variables that are on the transition screen.

# Add Conditioned Validator

## Select Validator

1. Click the **Add** **Validator** button in the* Validators *section of the workflow transition you want to apply validation on.
2. Find and select the *Conditioned Validator* in the list.
3. Click the **Add** button to add the validator to the selected transition.

![image](media://9600f9e0-9872-4ea2-98b2-ef5c7f65900d)

## Add Details

1. Enter the following details in the *Conditions & Configuration *tab:
  1. "Original_Priority" in *Condition 1* and "Blocker|Critical" in the corresponding *Regular expression pattern *field.
  2. "jql_result_count" in *Condition 1* and "0" in the corresponding *Regular expression pattern* field and select *Negative.*
2. Select the *Messaging *tab.
3. Enter the following:
  1. "For this issue, the issue must have Blocker or Critical priority and at least one sub-task. Issue priority - "original_priority"" in the *Message * field.
  2. "Notes for the function" in the *Notes *field.

![image](media://e0bf489f-5887-4556-b654-80efb70f725a)

## View Validators

When viewing all validators, helpful information is displayed.

![image](media://f1fdc9ae-7bba-4aaa-93a5-f46a985d6761)