close subtask when parent is closed

Amanda Zacharski February 12, 2014

I would like to close all subtasks automatically when its parent is closed. Is there a way to do this without groovy scripts?

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
EddieW
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.
February 28, 2014

You don't need to write any groovy scripts yourself, as an auto-close subtasks one is provided with the Script Runner plugin. You would only need to make sure the sub-task Ids are correct.

Otherwise I suggest you vote for https://jira.atlassian.com/browse/JRA-17500

Amanda Zacharski March 20, 2014

Voted. Thanks

Kimmy Roberts March 31, 2018

@EddieW

I have voted too.

I have the Script Runner plugin, but I have it for Cloud.

The example linked here: https://jamieechlin.atlassian.net/wiki/spaces/GRV/pages/33030170/Post+Functions#PostFunctions-Autocloseallsubtasks is for Jira Server instead.

Do you know where I could find similar information for Jira Cloud?

Thanks :)

1 vote
andreas
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.
November 21, 2016

There's now a very easy to configure way to transition parents and sub-tasks in sync using Automation for JIRA!

You can easily modify related issues (such as parents, stories, sub-tasks, epics, linked issues and even JQL) using our related issues action and condition:

(this example transitions sub-tasks to "In Progress", but you could easily change this to "Closed" as well)

For more details see https://blog.codebarrel.io/synchronize-parent-and-sub-task-issues-with-automation-for-jira-bdcca6c9d453

Jay Skibba February 13, 2018

Hi there - which automation rule are you using?  I can't seem to find a when condition for "Issue Transition" only "Linked Issue Transition"  Thanks!