Use Cases for Conditions (Legacy)
Note: the Use Cases detailed on this page are still mostly valid! However, they are in the process of being updated, both in format and in specific Condition configurations that have been changed in recent JMWE updates.
This section has use cases that help you understand the usage of the Conditions provided by JMWE.
On this page:
- 1 Build-your-own (scripted) Condition
- 1.1 Only the Reporter of the issue should be able to close the service ticket.
- 1.2 Hide the transition from the current user if he is not in the Approvers field
- 1.3 Block a specific transition when the Time to resolution is breached.
- 1.4 Prevent the users from "Return/Exchange" on the purchase order after 15 days from the item delivery date
- 1.5 Enable the "Start Progress" only on issues in the current sprint
- 1.6 Ensure at least one pdf file is attached before the issue can be transitioned
- 1.7 Show transition “Reject” only for users of the “Management” project role and “jira-administrators” group
- 2 Current Status Condition
- 3 Linked Issues Condition
- 3.1 Hide the transition "Triage" until at least one assigned subtask is available for the issue
- 3.2 Hide the "Start Progress" transition on a ticket when there is an issue linked to it through the “is blocked by” link type
- 3.3 For a parent of issue type “Story” hide the In Progress transition until all its subtasks are in “In Progress”
- 4 Linked Issues Status Condition
Build-your-own (scripted) Condition
This condition can be used to hide/show a transition based on a Jira expression.
Sample use cases:
Only the Reporter of the issue should be able to close the service ticket.
Hide the transition from the current user if he is not in the Approvers field
Block a specific transition when the Time to resolution is breached.
Prevent the users from "Return/Exchange" on the purchase order after 15 days from the item delivery date
Enable the "Start Progress" only on issues in the current sprint
Ensure at least one pdf file is attached before the issue can be transitioned
Show transition “Reject” only for users of the “Management” project role and “jira-administrators” group
Current Status Condition
This condition can be used to hide/show a particular transition from the list of available workflow actions, based on the current status of the issue.
Sample use cases:
Disable a global transition from certain statuses
Block issue transition from current status to itself
Block transition to 'On Hold' status when the issue is in 'Closed' status
Linked Issues Condition
This condition can be used to hide/show a particular transition from the list of available transitions, based on the issue's linked issues.
Sample use cases:
Hide the transition "Triage" until at least one assigned subtask is available for the issue
Hide the "Start Progress" transition on a ticket when there is an issue linked to it through the “is blocked by” link type
For a parent of issue type “Story” hide the In Progress transition until all its subtasks are in “In Progress”
Linked Issues Status Condition
This condition can be used to hide/show a particular transition from the list of available transitions, based on the status of the issue's linked issues.
Sample use cases: