Hello Friends!
I'm working on an automation rule in Jira (Cloud version) to streamline the process of closing user stories and their sub-tasks. Here's what I'm trying to do:
Use JQL to retrieve a set of user stories.
Branch into the result and pick the first user story.
For that story, close all its sub-tasks first.
Once all sub-tasks are closed, close the parent user story.
I understand that a parent story cannot be transitioned to “Done” until all of its sub-tasks are closed.
My current rule retrieves the stories correctly, but I’m unsure how to insert logic that ensures the sub-tasks are closed before attempting to close the parent.
My Questions:
How can I modify my existing rule to close the sub-tasks before transitioning the parent?
Is there a more effective or cleaner way to structure this rule?
Any guidance or examples would be greatly appreciated!
This is my current rule:
I appreciate your help in advance!
Regards,
Hi @Vasu Dev
First thing: what problem are you trying to solve? That is, "why do this?"
Knowing this will help the community offer better suggestions, or perhaps other alternatives, because you seem to be describing this:
GIVEN several Story work items
AND each Story has Subtasks
WHEN a rule is manually triggered
THEN for-each Story
Transition the Subtasks to "closed"
AND then transition the Story to "closed"
This type of bulk-closing seems to remove the value of having the Subtasks: if they are just going to be closed why not just have the Story instead?
Assuming there is a reason to do this type of bulk-closing...
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.