Forums

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

How do I create an automation to cancel parent tickets & subtasks be set into another status?

tbundy October 25, 2023

I am looking at how to create an automation for already Canceled parent tickets. 

I want to take the currently Canceled parent tickets and get all the subtasks to be set into a "Review Unnecessary" status. 

Project = Launch Tracker

Parent Issue Type = Feature Launch Tracker

Subtask issue type = 'sub-task' + 'Eng Launch sub-task' + 'Quality Eng Testing'

1 answer

0 votes
Trudy Claspill
Community Champion
October 25, 2023

Hello @tbundy 

Have you tried to construct this automation rule? What do you have so far?

You could use a Schedule trigger with a JQL statement to select all the Feature Launch Tracker type issues that are in the Canceled status.

You could then add a For Each: Related Issues: Sub-tasks step to select all the sub-tasks of each issue retrieved by the trigger.

Within the For Each branch you would then add a Transition Issue action to change the sub-task issue status to "Review Unnecessary".

Note that each sub-tasks needs to be in a status currently where the transition to "Review Unnecessary" is valid. If there are statuses where that transition would not be valid, then you may want to add a Condition inside the For Each to check the status of the sub-tasks, and then execute the transition only if it would be valid.

 

TRIGGER: Schedule
JQL: project="Launch Tracker" and issuetype="Feature Launch Tracker" and status=Canceled
FOR EACH: Sub-task
CONDITION: Issue Field Condition
Field: Issue Type
Condition: is one of
Value: (the values from which a transition to "Review Unnecessary" would be valid)
ACTION: Transition Issue
Destination Status: Review Unnecessary

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events