The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Groovy script or workflow transition to close issue once all dependent issues are closed

Paresh Gandhi
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 Champions.
June 4, 2014

I'm looking for workflow auto transtion or groovy script which can close parent ticket automatically once all the depedant tickets gets closed/resolved

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

2 votes
Answer accepted
Henning Tietgens
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 Champions.
June 5, 2014

The already is a built-in post function Transition parent when all subtasks are resolved within Script Runner. Is there a reason you can't use this one?

Vishnukumar Vasudevan
Community Champion
June 5, 2014

That's it :)

Paresh Gandhi
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 Champions.
June 5, 2014

Those are not subtask.

Will it work for linked issue as well. If all the linked issue get closed, will it close parent one from where those got created

Henning Tietgens
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 Champions.
June 9, 2014

No, it wont. But you can use the script as a starting point and collect linked issues of the issue through the IssueLinkManager.