Forums

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

Assign the second subtask to a user when the first is finished.

Dora Judith Martínez Vera November 8, 2023

Good afternoon, I require your help to carry out an automation that when the second subtask is in the Finished state, the third is assigned to a specific user.
perform the tests that you can see in the screenshots

In these images you can see the automation that I created so that when choosing the Purchasing Company option in the Incident Type field, 6 subtasks are created.

Captura desde 2023-11-08 14-56-46.png

These subtasks have a specific name and I enter the id of the parent issue.

Captura desde 2023-11-08 15-00-09.png

I created another automation to edit subissue 2 and add the responsale but the problem arises when I want to say in which to make the modification.

Captura desde 2023-11-08 15-06-32.png

Captura desde 2023-11-08 15-08-11.png Captura desde 2023-11-08 15-08-51.png

This is where the problem arises because as I indicate in which sub-incidence to make the change.

2023-11-08_15-11.png

Another option that I tried is that when the subtask is finished, the other one is created in the main subtask, but I think something is wrong in the condition because it wants to perform this action in the subtask and it sends an error.

Captura desde 2023-11-08 15-17-28.png

I hope you can help me because I have already tried many ways and I can't find the solution. Also, if it's not too much trouble, could you tell me how to copy the comments from subissue 1 to 2? I look forward to your comments, thank you!

1 answer

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.
November 8, 2023

Hi @Dora Judith Martínez Vera 

For this scenario, identifying the correct "next" subtask to work on may be the way to solve this.

If the subtasks have unique Summary values you could use a branch on JQL to find the correct issue for the assignment.  For example, assuming the first subtask (the trigger issue) moves to your Finished status, the JQL to find the next one could be this:

parent = {{triggerIssue.parent.key}} AND Summary ~ "the specific text for your next subtask"

 

Kind regards,
Bill

Dora Judith Martínez Vera December 6, 2023

Thank you very much @Bill Sheboy , you helped me a lot and responded and I solved the problem.

Like Bill Sheboy likes this

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