close subtask when parent is closed

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 Closed
Accepted Answer
0 votes

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

@Eddie Webb

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 :)

0 votes
Andreas Knecht Community Champion Nov 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

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!

Community showcase
Posted Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

21,766 views 2 7
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you