Hi everyone,
I'm already using an automation rule that creates subtasks automatically. I now would like to add another automation that sets a specific status to each of the subtasks. So in the end, I want every automatically created subtask to start with a specific status.
Is there a way to create an automation rule like that?
Kind regards,
Pauline
Hi @Pauline Hild - You would need to Branch into each sub-task and then perform a Transition Issue action to transition to the desired status.
If you need additional help, please share a screen shot of your rule.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Pauline Hild - You'll want to move the create new sub-task above the branch. It wouldn't hurt to add a re-fetch just before the branch as well.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok, I tried it out and it worked for one subtask but there must be problem with the rest because all subtasks got the same status as the first one and I don't know why. Do you see the mistake?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So for each time you branch, you'll want to give specifics to ensure only those sub-tasks you want to transition actually transition. You can accomplish this two ways:
parent = {{triggerIssue}} AND ...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok, so when I want to add a condition under each branch, what do I have to set as status? In the example below it wouldn't make sense so set "sample qc" because this is the status I want the subtask to have after the automation rule worked.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Let's take a step back on this... Are you wanting all newly created sub-tasks to immediately transition to SAMPLE QC? If so, rather than having automation do this, why not create a workflow specifically for sub-tasks where the created transition (the one that comes off the circle) goes straight to SAMPLE QC? This would be more efficient than having to always step through an unnecessary status.
If this is only for a specific use case (only sub-tasks generated off of the Task issue type), then you can continue down this path. Your condition would be this:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No, every newly created sub-task should be immediately transitioned to a specific status but it's another status for every subtask.
If I understood you right, I need to set the first status ("Planning") as the condition before each branch?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You'll need to have business logic to define what status you want each of these sub-tasks. For example:
Ultimately, you need to find a way to separate the specific sub-task from the pack so you're only transitioning sub-tasks that should be transitioned to the status you want them to be transitioned to.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok, so the logic behind this is that every subtask has in its summary the name of the status. In the screenshot down below it's for example "Sample QC" so I want the status to be "Sample QC" as well, immediately when the subtask is created.
I couldn't find a way to integrate this for every subtask in my automation rule yet. In the moment, all other subtasks have "Sample QC" as well as their status.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So to be clear with the rule behavior:
The important thing I'm getting at is that you're only creating a single sub-task at a time. If I'm correct with my understanding, you just need to branch into the most recently created issue and transition it. So your branch would be Most Recently Created Issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You are correct with your understanding.
I changed the branch into "most recently created Issue" but as the branch is placed before the "create subtask" action, it didn't work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The branch should be after the create sub-task. You need the sub-task to be created then immediately after it's created you have it transition to the appropriate status.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You were right, I changed it and it finally works now.
Thank you very much for your efforts to help me!
Kind regards,
Pauline
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Pauline Hild - You can also do this by having a different rule that is triggered by the Subtask creation (with appropriate constraints, of course). The key is to check the Allow rule trigger box for your status-setting rule, as illustrated here:
Credit to @Robin Flood for the image from this answer:
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.