Unlink issues from the current issue
A post-function that will unlink issues from the current issue based on the result of a Nunjucks condition.
When you add this post-function to a transition and trigger it, the add-on checks the specified condition against each linked issue of the current issue. If the condition evaluates to any text except false or an empty string, it will remove the issue link. If not, it will not remove the link.
To add 'Unlink issues from the current issue' post-function to a transition:
Click Edit for the workflow that has the transition to which you wish to add the post-function.
In the Workflow Designer, select the transition.
Click Post Functions in the properties panel (or select the Post Functions tab).
Click Add post function.
Select Unlink issues from the current issue from the list of post functions.
Click Add. The Unlink issues from the current issue post-function screen will open, where you can configure the post function as needed. See below for more details on specific configurations.
Click Add to complete the configuration and add the post-function.
After adding, move the post-function to the appropriate position according to Placing post-functions in a transition document.
JMWE shows an error message on the issue view if any error occurs during the execution of the post-function. This message is displayed only if the current user is a Jira administrator.
Issues to unlink
Condition - Input a condition that will return an issue ID or IDs using Nunjucks annotations. You can insert issue, linkedIssue, transition, linkTypeName, currentUser and now variables in your condition and test it using the Nunjucks tester.
Examples:{{linkTypeName == "blocks"}}
returnstrue
for all linked issues linked to the current issue withblocks
link type{{linkedIssue.fields.status.name == "Rejected"
}} returnstrue
for all linked issues that are in theRejected
status.
Advanced options
Run As
Delayed execution
You are viewing the documentation for Jira Cloud.
On this page |
---|