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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

86 views 0 5
Read article

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