Skip to end of banner
Go to start of banner

Build-your-own (scripted) Condition

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

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:

  1. Log into your Jira Server instance as an Administrator.

  2. Click on the Settings icon ⚙️ in the upper right corner.

  3. Select Issues.

  4. In the left-hand panel, click Workflows.

  5. Click Actions ( action_action.png ) for the workflow you want to edit and select Edit.

  6. Edit the Transition:

    1. 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.

    2. 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

  1. Follow the steps above to add a condition to a transition.

  2. From the list of validators, select Build-your-own (scripted) Condition.

  3. 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.

  4. 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.

You are viewing the documentation for Jira Cloud.

  • No labels