Forums

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

How to change the status of a subtask created as a part of automation?

Ram March 19, 2023

Hi,

 

  I am creating two sub tasks as a part of automation. I was able to link them together as blocked. However I would also like to change the status of the second sub tasks to Blocked. The status is defined in the workflow. I added a "transition issue" in the automation. Made sure that the "..allow other rule actions..." checkbox is checked as well. However the status of the second sub-task is not changing to "Blocked". Appreciate any help.

Screenshot 2023-03-17 at 6.49.52 PM.png

1 answer

0 votes
Agraj Mangal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 23, 2023

Hi @Ram 

There is no way to set issue context on the "Transition issue" so you would probably need to loop over the sub-tasks of the issue created using JQL and then transition each one of them to "blocked" using "Transition Issue" for each of the sub-tasks. Something the below should work

Automation_-_Jira.png

Cheers
Agraj

Ram March 23, 2023

Hi Agraj, 

 

  Thanks for your response. Out of the three subtasks, I would like to move only the issues i.e. sub-tasks 2 and 3 to be in Blocked status not the first one in the chain. Anyhow will try this solution and see if I can come up with a JQL for the two subtasks only and move them to Blocked status.

 

Thanks.

Ram

Suggest an answer

Log in or Sign up to answer