🚀 JWT 3.0 is out 🚀 

The app was completely overhauled, and so was the documentation: Jira Workflow Toolbox (Server/Data Center) Home

The page you are viewing is still valid for all app versions prior to 3.0.

On this page

Features used to implement the example

Example: Make a custom field mandatory when Priority is "Critical" or "Blocker"

When a new issue is created we want to make sure a field "Consequence of bug” is mandatory on the screen only if priority is “Blocker” or “Critical”. To implement it we should use validator Validation based on regular expression with the configuration shown in the following screenshot:

To evaluate the value of fields Priority (field code %{00017}) and Consequence of bug (field code %{10700}at the same time, we compose a text with both fields using character '@'  as separator. We check  "Negate validation" since the regular expression introduced describes the kind of input we don't to admit.

Once configured, the transition "Create Issue" will look like this:

Related Usage Examples