I have automation that creates sub-tasks when a component is added to a story. I want to delete sub-tasks when a component is removed, is. Is there a way to do it?
Hi @Varun Reddy Jonnalagadda -- Welcome to the Atlassian Community!
The delete issue action deletes the "current issue", in scope at that point in a rule. Perhaps try branching to the specific subtask you want to remove and then use that action. If this is unclear, please post an image of your complete rule as that may provide context for the community to help.
And please note that with Jira Cloud, there is no "undo" when issues are deleted. If you believe there is a chance the delete could happen in error, consider disabling the "delete issue" permission for your project and use a resolution, status, or custom field to mark the issue as "abandoned" instead. This could remove it from viewing/reporting, while remaining recoverable.
Kind regards,
Bill
Hello Bill, Ive tried implementing your suggestion with a branch, but it does not work:
I want to make an automation that is triggerd manually to delete all subtasks from a story.
Can you help?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Nathalie Kaspers -- Welcome to the Atlassian Community!
As this is a very old thread, I recommend creating a new question. That will ensure the maximum number of people see it to offer suggestions.
And when you create you new question, please include:
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.
Welcome to the community!
Here is a post with your answer: https://community.atlassian.com/t5/Jira-Service-Management/How-to-delete-issues-using-Automation/qaq-p/1419344
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Fabian Lim , Thanks for sharing the link! The automation I have runs on a story, so when I add "delete issue," it deletes the story. I want to delete the sub-tasks on the referring story instead.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.