Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Auto-delete Sub-tasks with no worklog when trying to close Stories?

mirunadriana May 6, 2020

Hello guys,

A few days ago, I wanted to find a method to automatically delete all Sub-tasks that don't have longs on them when closing a Story. Then I thought a good method would be to add a new Automation Rule.

 

The rule looks like this:

 

Capture1.PNG

 

And the JQL query:

project = "Proiect de test (Copy of UWF)" and type in ("Development task", "Administrative task", "Analysis task", "Automated testing task", "Bug task", "Code review task", "Design task", "Documentation task", "Environment setup task", "Improvement task", "Manual testing task", "Meeting task", "Release task", "Scrum task", "Training task", "Unit testing task") and timespent is EMPTY

 

The only problem is that the current flow does not allow me to close a Story if all its Sub-tasks are not closed. On the In Progress - Closed transition, we have this condition - All sub-tasks must have one of the following statuses to allow parent issue transitions: Closed

We wouldn't necessarily want to erase this condition if we find another option. Any suggestions? :D

 

1 answer

0 votes
John Funk
Community Champion
May 24, 2020

Hi @mirunadriana ,

I don't think you will find many people in the Community that recommend deleting ANY issues, especially with Automation. 

Have you thought about transitioning those to a Discarded or Canceled status?

Suggest an answer

Log in or Sign up to answer