You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
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.
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
Cheers
Agraj
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
To change the status of a subtask created as part of Jira core automation, you can use the "Transition issue" action in the automation rule. Here are the steps to follow:
If the status of the second subtask is not changing to "Blocked" after following the above steps, it may be helpful to check the workflow configuration to ensure that the "Blocked" status is set up correctly. Additionally, make sure that the automation rule is running correctly and that there are no errors or conflicts with other automation rules.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pankaj. Thanks for the response. I followed the exact steps. Please refer to the screenshot in my original question. Also there are no errors reported in the audit log. Audit log says the sub-task status is successfully transitioned. However the sub-task remains in its original status. The workflow doesn't have any restrictions on status changes.
Attaching the audit log and the end result to this response.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ram,
I'm having kind of a similar problem. You don't see an error but also not the correct behavior because the automation does not change the status of your sub task but looks at the issue that triggered the automation. So you are probably changing the status of the parent to "blocked".
In my case an update to an asset triggers my automation. I create an issue with a sub task and want to update the status. I managed to address the parent issue by branching to "most recent created issue" but that seems not to work for sub-tasks.
I'm a bit stuck too.
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.