Is it somehow possible to close the parent issue when all linked issues are closed?
We have Scriptrunner in place. Is there any ready to use script (post transition) or do we need to develop that on our own?
Community moderators have prevented the ability to post new answers.
Hi M.Maerki,
I have attached below a sample script along with a screenshot of how to configure it. The Fast Track Transition listener will Transition a parent issue to Done when one of the linked issue is transitioned to done.
import com.atlassian.jira.component.ComponentAccessor import com.atlassian.jira.issue.link.IssueLink // Get the Issue Link Manager def linkMgr = ComponentAccessor.getIssueLinkManager() // If one of the linked issues is set to Done then close the parent issue. for (IssueLink link in linkMgr.getOutwardLinks(issue.id)) { if (! link.sourceObject.getStatusObject() != "Done") { return true } return false }
image2016-3-7 14:48:59.png
You will be able to use place this code in a fast track transition listener as described here and modify it to check that all Linked issues are done if that it is what you require.
I hope this helps
Thanks
Kristian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.