I'm trying to use Automation to create Epic>Task>Sub-Tasks and when I run the rule I only see the Epic>Task issues create. See screenshots as to how I set it up based on this thread but the Sub-tasks won't create. Please help! What am I doing wrong?
Hi @Connor Rodriguez -- Welcome to the Atlassian Community!
After you create the new Task, branch to the Most Recently Created Issue rather than to the Current issue. Then the subtasks will be added with the new Task as their parent.
Kind regards,
Bill
@Bill Sheboy Thank you for the suggestion, and I made that update, but the sub-tasks issues are not still generating. Could there be some wrong with the Re-fetch Issue data condition or perhaps the value I have in the parent issue field for the sub-tasks?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Reading your original rule images, I notice some things that would cause problems:
Lists use a 0-based index in rules, and so the parameter to the get() should be a 0 and not a 1. However, that is not needed when the branch is changed.
Assuming you are trying to add the issues and tasks under the trigger issue, please try this one:
Once the rule is inside the branch, {{issue}} refers to that issue and so the {{createdIssues}} smart value is not needed.
If instead you are also trying to copy the trigger issue, please let me know.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Bill Sheboy This was very helpful. I ended up removing the manual trigger and replacing it with a status change trigger. But using issue.key worked like a charm, and so did using most recently created issue. It seems to be working well. I really appreciate your help on this!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Awesome; I am glad to learn it is working! Please consider marking this question as "answered" to help others with a similar need find solutions faster. Thanks!
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.
Hey @Connor Rodriguez , thanks for bring me here.
Your automation structure is kind of different of the automation rule presented in the other post.
If you want to create an Epic > Tasks > Subtasks in the same rule you need to have a Create Issue event in your rule to save your epic as "EpicKey" variable.
It should be like this:
Could you try these steps in the same rule to see if it works?
Let me know anything
Fernando
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
But if you already have the Epic created, then you need to change a litle bit your automation structure, because you already have Epic Issue Key.
The steps described here: Solved: Automation: Epic > Tasks >Sub-tasks is really about create Epic > Tasks > Subtasks in the same automation rule.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Fernando Eugênio da Silva This is very helpful. I used a lot of what you provided in the previous post! Thank you for your help! I will probably need it again in the future.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Any time, @Connor Rodriguez !!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Welcome to great meetings, with less work. Automatically record, summarize, and share instant recaps of your meetings with Loom AI.
Learn moreOnline forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.