Transition parent with child constraint

Marcel Joemmanbaks March 23, 2014

When a task makes a transition to 'Done' i want the parent story to make a transition if all other tasks belonging to that same story are also 'Done'.

To achieve this i added a post function to transition the parent issue. Now i want to add a condition to it so that it is only done if all children of the parent are in the target status. I have no clue how to do this. Any groovy expert around that can help me with this?

1 answer

1 accepted

1 vote
Answer accepted
Tarun Sapra
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 23, 2014

You don't need script runner for this -

I have asnwered this questione before, please go through my answeres and comments -

https://answers.atlassian.com/questions/157110/transition-parent-to-close-when-sub-tasks-are-closed-is-not-working-the-way-it-should

Marcel Joemmanbaks March 23, 2014

Got it to work with that link. Did not take into account that conditions of the parent would still be fired when i call its transition from within the child. Thanks!

Suggest an answer

Log in or Sign up to answer