automatical close of parent Task

Hello, what do I need to do if I want the parent task of an issue to be closed automatically if all it s sub tasks are resolved or closed ?

3 answers

1 accepted

1 vote

For JIRA Core, you'll need to find/write a post-function for the sub-task workflow that can check the parent to see if this sub-task is the last one being closed and trigger a transition on the parent if it is.

If you have JIRA Software, that does it automatically for Stories

Sorry )-: where exactly can i see if we have JIRA Core or JIRA Software and , do you think i will need to write a script for that post function , or (we do have a Plug In for extended Post function functions ) can i find it somewhere already ?

Check Admin -> Manage Applications to see if you have JIRA Software. Although having "Agile" in your top bar, and access to Scrum and Kanban boards is a dead giveaway if you have them. Do you have the ScriptRunner installed? That's the most flexible option, as you can add stuff to update the parent as well as just transition it if you want.

 this is what i have but i think i need to update it ?—well i have no Agile Jira, so seems I have JIRA Core...ScriptRunner.jpg

Depends on the version - I don't know what you're running, so there's a couple of things: JIRA Core and JIRA Software only applies to JIRA 7+. If you're on 4, 5 or 6, then it's just JIRA and the Agile Add-on. If you're on version 6 of JIRA you might not need to upgrade ScriptRunner to the paid version (if you're on 7, you do). Depends on the exact version of JIRA you are on though.

Hello i am on 6.3.15... Version,...ok so the only way i can get to close Parent task automatically when sub tasks are closed is writing a script ?

there is no other more simple and easy way to do so, via post function or so ?

This is the "simple post function" to do it.

ok thanks... i will hand this over to some of the informatic guys here,....

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Wednesday in Jira

Join our webinar: How 1B+ feature flag events helped us build the new Jira

Every time you release software, there's a bit of risk – that there's a bug, that something breaks, or that the feature doesn't resonate with customers. Feature flagging helps make high stakes s...

129 views 0 3
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