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.
As you are trying to assign the newly created subtask, there are two ways to solve this:
Kind regards,
Bill
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 https://support.atlassian.com/cloud-automation/docs/jira-automation-branches/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 - https://support.atlassian.com/cloud-automation/docs/jira-smart-values-conditional-logic/
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!
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.