Create Subtask and create assignee based on component

Quang Nguyen February 19, 2024

I am trying to run a schedule that searches through all Stories to create Subtasks if a condition is met, duplicates the components from the Story to the Subtask, and then assigns the Subtask to a user based on the components. Something like "if component contains 'Apple' then assign to 'Sam', if component contains 'Banana' then assign to 'Chris', if component contains 'Pear' then assign to 'Tim', etc..".

So far I have: 




However the last step, "assign the issue to..." is changing the assignee of my Story. I would like to have it change the assignee of the Subtask instead. 


I also tried adding the assignee in the second step, "Then: Create a new subtask", but the option to add an assignee there did not have functionality to search in the components.

3 answers

1 accepted

0 votes
Answer accepted
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.
February 20, 2024

Hi @Quang Nguyen 

As you are trying to assign the newly created subtask, there are two ways to solve this:

  • After the issue is created, branch to Most Recently Created Issue to assign it, including your conditional logic inside of the branch
  • Assign the issue when it is created by setting the assignee field.  Depending upon your Jira version, there are various ways to do this:
    • With Jira Cloud or Data Center, you could first use if / else conditions to create a variable to use as the assignee's account id value
    • With Jira Cloud, you could use a Lookup Table to map the component values to the assignee account id values
    • With any version, you could use if / else conditions, and repeat the Create Subtask action in each condition area...with one for each possible assignee value.

Kind regards,

Quang Nguyen February 22, 2024

Thanks Bill, I am on Jira Server (with company in URL). I created the branch to Most Recently Created Issue. Did not see that option before!

Like Bill Sheboy likes this
0 votes
Rilwan Ahmed
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 19, 2024

Hi @Quang Nguyen ,

If you are in jira cloud, use "FOR EACH: add a branch" component. This will run the rule for the sub-tasks created. 
More details is in


0 votes
Hariharan Iyer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 19, 2024

Hi @Quang Nguyen ,

The issue in the last step would always refer to the trigger issue only. For setting the assignee in the newly created issue, you can click on "Choose fields to set", add Assignee there and then use a smart value with if/else conditions to assign the correct user -


Alternatively you can identify the owner earlier and store it in a variable, and then use the variable to set the value.


Hope that helps!

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events