Overview

Conditions” feature allows you the ability to establish criteria using https://developer.atlassian.com/cloud/jira/platform/jira-expressions/. The chosen expression is evaluated by the Jira REST API based on the selected condition evaluator. These conditions serve as qualifiers for either generating an approval or incorporating a step into it. When the criteria are satisfied, approval is created or the assigned step seamlessly integrates into the approval process. Conversely, if the conditions aren't met or an error arises during assessment, approval creation fails or the step is omitted from the flow.

Use Cases

Adding conditions to approval steps using Jira expressions offers a flexible way to manage your project workflows. Here are some interesting ideas for conditions you might consider:

  1. Issue Priority-Based Approval: Trigger an approval step only if the issue's priority is above a certain threshold. For example, only issues marked as 'High' or 'Critical' require approval.

  2. Project Phase Dependency: Initiate an approval process based on the current phase of the project. For instance, approvals are needed only during the 'Development' or 'Testing' phases but not during 'Planning'.

  3. Time-Based Conditions: Implement a condition where approvals are required if an issue remains unresolved or unattended for a certain period, indicating it needs higher attention.

  4. User Role or Group Check: Set up approvals to activate only if the issue is reported or handled by users of a certain role or group. This can be useful for ensuring that only relevant personnel are involved in the approval process.

  5. Issue Type Specific Conditions: Differentiate approvals based on the type of issue, such as 'Bug', 'Feature Request', or 'Task'. Each category could have its unique approval process.

  6. Budget Constraints: In projects where budget tracking is essential, approvals could be required when the estimated cost of an issue exceeds a set limit.

  7. Dependency on Other Issues: Approval steps could be conditional on the status of related issues, such as requiring all blocking issues to be resolved first.

  8. Customer Impact Analysis: For customer-facing projects, approvals could be mandatory for issues that are marked as having high customer impact.

  9. Change in Issue Severity: Trigger an approval if there's a change in the severity level of an issue, indicating a potential escalation in the problem.

  10. Compliance Check: In regulated environments, approvals can be made conditional on whether the issue complies with certain standards or regulations.

Each of these conditions can be tailored and combined to fit the specific needs of your project, ensuring that the approval process is both efficient and effective.

Determining Condition Approval Steps

Accessing Global/Project Settings

Global

Project

Creating a Conditions Rule

Condition verification

You can specify the key of a specific issue to verify the condition expression for that particular issue.

Click the ‘Test’ button to check your expression. You'll find details below indicating whether the expression is met, not met, or if an error is encountered, returned result is not of type boolean.

Expression results:

Creating Conditions

Create Approval Path Condition


Create Approval Step Condition


Once chosen, the step will be included in the approval workflow only when the condition is met. Conversely, if the condition is not fulfilled or an error occurs during the evaluation of the condition, the step will be excluded from the approval process.

Managing Condition Rules

You can filter conditions by name, project, or status. This allows a comprehensive browsing of the conditions' versions and their usage across issues.

Viewing and Editing

All Condition rules are listed here, and you can click on any rule to view or edit its details.



Duplicating

Archiving

Archived conditions are not applied to approval path

Filtering and Sorting

Viewing Active Conditions

Configuration and History