Forums

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

Set assignee on parent ticket to next subtask asignee

Elaine Cawthorne
Contributor
October 6, 2023

I have an automation to create 9 subtasks when a particular ticket type is used.  I set the assignee of the parent ticket to the assignee of the first sub task.  The tasks will be preformed sequentially.  Is there a way to set the parent ticket assignee to the assignee of sub task 2 when subtask 1 is completed?  as an automation will create the subtasks I would expect them to follow on numerically if that helps?

2 answers

1 vote
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 6, 2023

Hi @Elaine Cawthorne 

Short answer: maybe.

More information...

In automation rules, things which branch on multiple things/issues or perform multiple actions together happen in parallel.  And so ordering of saved/updated issues is not guaranteed.

For your subtasks, can you determine their order by some field, such as by the summary?  For example: "step 01 - do something", "step 02 - do that other thing", etc.

If so, I recommend creating JQL to return the subtasks in that order, load them with a Lookup Issues action, and then access the one you want using the list functions, such as first, last, or get().

Kind regards,
Bill

0 votes
Sayed Bares _ServiceRocket_
Community Champion
October 6, 2023

@Elaine Cawthorne you can add an Assign issue action in your parent issue set Assign the issue to smart value and User to {{issue.subtasks.get(1).assignee}} . This way it will take the assignee of second subtask.

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