Forums

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

Linking 2 subtasks

Dd
Contributor
August 24, 2023

I'm looking for a way in automation to do the following (scheduled task will do).

Look for a TASK that has 2 subtasks cloning it.

If the TASK is called MyTask, then it will have 2 labels: basic and advanced, and it will also have 2 cloned subtasks linked to it named:

  • Basic MyTask
  • Advanced MyTask 

The solution may rely on all of that.

I want automation to find TASKs that all the above characteristics apply to (this JQL is simple) and then link the 2 cloned subtasks thus that Basic MyTask is blocking Advanced MyTask   

Thanks

1 answer

0 votes
Trudy Claspill
Community Champion
August 24, 2023

I have an alternate suggestion

Assuming you are wanting to run this against issues that already exist, create a Scheduled trigger Automation Rule to find all the subtasks with summary Basic MyTask.

Then check if their parent issues match the conditions you specified (i.e. has the specified labels) by using a Lookup Issues action to find the parent issue.

Confirm a parent issue matching the conditions was found by checking the count of issues in the Lookup Issues results.

If the count is 1, then use a branch to find the sibling subtask with summary Advanced MyTask.

When that is found, use the Link Issue action to link it to the trigger issue.

Screen Shot 2023-08-24 at 11.48.30 AM.png

There is a limit on how many issues can be processed by a schedule trigger. How many subtasks do you have that would have the specified summary?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events