A workflow condition that hides/shows a transition based on the result of Jira expression. The transition to which the condition is added will be available only if the Jira expression returns true. This can be used to test or compare issue fields, to test linked issues, to check for open Sprints, etc.
When you add this condition to a transition, the add-on checks the result of the Jira expression. If the expression returns true, the transition will be available to the user, and if it returns false or a non-boolean value, the transition will be hidden.
To add a condition:
Log into your Jira Server instance as an Administrator.
Click on the Settings icon ⚙️ in the upper right corner.
Select Issues.
In the left-hand panel, click Workflows.
Click Actions ( ) for the workflow you want to edit and select Edit.
Edit the Transition:
When viewing the Workflow in Diagram view, select the Transition and click the Conditions link. Click Add condition at the top of the list of existing conditions.
When viewing the Workflow in Text view, click the name of the Transition then select the Condition tab. Click Add condition at the top of the list of existing conditions.
Configure the condition
Follow the steps above to add a condition to a transition.
From the list of validators, select Build-your-own (scripted) Condition.
The Build-your-own (scripted) Condition page will open (Figure 1, right). Configure the condition as needed, setting the options for the description and logical test. See below for details on each of the configurations.
Click Add.
Note that you will need to publish the workflow for the new validator to take effect.
The following configurations are available:
Description - Give the condition a description; this will be included in the list of conditions for the transition and in the Workflow Extensions administration page.
Jira Expression - The logical test for the validator. If this test evaluates to false, the validator will fail and prevent the transition from executing. Enter a Jira expression.