Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Close the issue only after Linked issues closed

Madhu Reddy December 10, 2018

X-Issue have 5 linked issues,

I want to close X-issue only after the 5 linked issues closed.

Is there any possibility to Achieve this.

 

Thanks in advance

2 answers

1 vote
Deleted user December 11, 2018

Hi @Madhu Reddy,

 

You can use a Third party add-on Jira Misc Workflow Extension which will helps you in validating all the linked issues status. Hope this helps you if you don't want to go with scripting. 

linked issues.png

 

Thanks,

Sravya

1 vote
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 10, 2018

Hello,

You would need a plugin for it. 

For example you could use the Power Scripts add-on:

https://marketplace.atlassian.com/apps/43318/power-scripts-jira-script-automation?hosting=cloud&tab=overview

You could add the SIL post function to the Close transition with a script like this:

boolean flag = true;
string [] outwardIssue = linkedIssues(key, "Relates", 1);

if (size(outwardIssue) > 0) {
string [] inwardIssues = linkedIssues(outwardIssue[0], "Relates", 1);
for(string i in inwardIssues) {
if (i.status != "Closed") {
flag = false;
break;
}
};
if (flag) {
boolean success = autotransition("Close", key, true, true, true);
}
}

This script suppose that your issues a linked with the Relates status. The outward link goes to the parent and the inward link goes to children.

Suggest an answer

Log in or Sign up to answer