...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
This section has use cases that help you understand the usage of the Conditions provided by JMWE.
On this page:
...
This section has use cases that help you understand the usage of the Conditions provided by JMWE.
On this page:
Table of Contents |
---|
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.
Expand | ||
---|---|---|
|
Hide the transition from the current user if he is not in the Approvers field
Expand | ||
---|---|---|
|
Block a specific transition when the Time to resolution is breached.
Expand | ||
---|---|---|
|
Prevent the users from "Return/Exchange" on the purchase order after 15 days from the item delivery date
Expand | ||
---|---|---|
|
Enable the "Start Progress" only on issues in the current sprint
Expand | ||
---|---|---|
|
Ensure at least one pdf file is attached before the issue can be transitioned
Expand | ||
---|---|---|
|
Show transition “Reject” only for users of the “Management” project role and “jira-administrators” group
Expand | ||
---|---|---|
|
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
Expand |
---|
|
Block issue transition from current status to itself
...
Expand |
---|
|
...
|
...
|
...
|
...
|
...
Allow users to transition the issue to Approve status only when the issue is in Verified status
Panel |
---|
|
|
Block transition to 'On Hold' status when the issue is in 'Closed' status
...
Expand |
---|
|
...
|
...
|
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
Expand |
---|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
Hide the "Start Progress" transition on a ticket when there is
...
an issue linked to it through the “is blocked by” link type
Expand |
---|
...
|
...
|
...
|
...
|
For a parent of issue type “Story” hide the In Progress transition until all its subtasks are in “In Progress”
Expand | |
---|---|
|
...
|
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:
...
Hide the "Close" transition of the Epic until all its Stories are closed.
Expand |
---|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
Prevent the user from resolving the ticket, if there are any unresolved bugs associated to it.
Expand |
---|
...
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
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.
...
title | Steps |
---|
...
Write this content in the Jira expression.
Code Block |
---|
user == issue.reporter |
Hide the transition from the current user if he does not belong to the Approvers
...
title | Steps |
---|
...
Write this content in the Jira expression.
Code Block |
---|
!! issue.customfield_10002 && issue.customfield_10002.some(it => it == user) |
Block a specific transition when the Time to resolution is breached.
Expand | ||
---|---|---|
| ||
|
Prevent the users from "Return/Exchange" on the purchase order after 15 days from the item delivery date
...
title | Steps |
---|
...
Write this content in the Jira expression.
Code Block |
---|
new Date().minusDays(15) < issue.created |
Enable the "Start Progress" only on issues in the current sprint
...
title | Steps |
---|
Add the Build-your-own (scripted) validator to the Start Progress transition.
...
Name the validator as “Check Sprint”
Write the following script in Jira expression field
...
|