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
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
When creating an Epic in my Board (Software Project), I want to automatically create one task with ten subtasks.
Currently it is only possible for me to automatically create an Epic with a task or an Epic with a subtask.
When I try to automatically create an Epic with task and subtask, either the task or subtasks are missing or created outside the Epic.
I tried various variants before (even according to working solutions in other feeds but nothing works for me with Jira Cloud).
Thank you in advance
in the screenshots you can find two of various different ways I tried.
You need to set 'Copy from current issue' in Task and Sub tasks as well
Hi @Jana Jäger
Your rule is very close to what you need...the missing part is a branch on most-recently-created-issue. Please try this adjustment to add the subtasks:
Hi @Bill Sheboy thank you so much for your help. I can follow your explanation quite well but I guess I missed some detailed point.
It does work now but now a subtask always gets created when creating a task no matter the Project Type & I only need the subtask creation once after creating the epic (not always when adding a task).
Could you please be so kind in having a look what I could change?
My mistake, as I thought you had another path/case for when tasks were created without an epic.
I updated the rule I suggested to simplify it, removing that extra part. Please compare and update your rule accordingly and re-test it. Thanks!
Please post images of your current, complete rule and of the audit log details showing the rule execution. Those will provide context to explain what you are observing.
First, let's simplify/shorten your rule to see how that helps...
The action to Create Subtask can add multiple subtasks at a time, so try collapsing your 5 subtask actions into 1.
Next, where you branch to All Created Issues, please change that to Most Recently Created Issue, as there will only be one.
Then retest to see what happens. Thanks!
@Bill Sheboy Now these subtasks always get created when creating a new task manually. The workflow should be: New Epic -> one automatic task -> several automatic subtasks
This works but when I create another task manually, these subtasks get created as well. Any ideas what to do about that?
I hope it's okay that I continue asking you questions like that. I really appreciate your help.
You have an Else-If after the block testing for epic creation, and so it is adding subtasks for the newly created task. If you do not want those, remove the Else-if and additional subtask creation.
And if for the epic you want to create 2 tasks, you just need 2 blocks: one for each task.
Hi @Jana Jäger - You need to write two automation rules. First one is to create a task and add a label to that task. Then write the second rule to create subtasks and use the same label as condition for this rule.
You can use any other field if you don't want to use label in the condition of the second rule.