A workflow condition that allows you to hide/show a particular transition from the list of available workflow actions based on the issue's linked issues. |
The transition to which the condition is added will be available only if the issue's linked issues respect certain conditions.
|
To add 'Linked Issue(s) Condition' to a transition:
Click Edit for the workflow that has the transition you wish to configure the condition on.
In the Workflow Designer, select the transition.
Click on Conditions
in the properties panel.
Click on Add
condition
.
Select Linked Issue(s) Condition
from the list of conditions.
Click on Add
to add the condition to the transition.
Input a Jira expression
that returns a boolean value.
Click on Add
to add the condition to the transition.
Common mistakes while using this condition:
Other related articles
When you add this condition to a transition, the add-on checks the specified condition on the linked issues that are of the specified issue link type and issue type; all the other linked issues will be considered as satisfying the condition. You can further customize the condition using the following options:
Require certain linked issues: The transition is hidden if linked issues respecting the constraints below do not exist.
Check linked issues: If the specified linked issue(s) exist, the transition is hidden unless these linked issues respect the constraints below.
Select the issue link type that links the current issue to the linked issues to check the specified condition against.
Select the issue type of the linked issues to check the specified condition against.
None: Select this option for no additional condition
At least one linked issue must satisfy the condition below: Select this option for at least one linked issue to satisfy the condition specified under Jira expression below.
Jira expression: Input a Jira expression to be checked on all linked issues. If the Jira expression evaluates to true
for at least one of the linked issues, the workflow condition will pass. If the Jira expression evaluates to false
for all the linked issues the workflow condition will fail. See How to insert information using Jira expressions for information on writing a Jira expression.
Every linked issue must satisfy the condition below: Select this option for every linked issue to satisfy the condition specified under Linked Issues Condition#Jira expression.
Jira expression: Input a Jira expression to be checked on all linked issues. If the Jira expression evaluates to true
for all linked issues, only then the workflow condition will pass. If it evaluates to false
for at least one linked issue the workflow condition will fail. See How to insert information using Jira expressions for information on writing a Jira expression.
A typical use of this workflow condition is to hide the transition on the current issue until all its linked issues satisfy certain conditions. Consider a use where you want to hide the “Start Progress” transition on the parent until it has at least one assigned subtask. To configure it:
Add the Linked Issues condition
to the "Start Progress" transition.
Select the issue link type is Parent Of
from the Issue Link Type
field.
Select the option "At least one linked issue must satisfy the condition below"
Input the Jira expression:
linkedIssue.assignee !=null |