Hi,
I need to create tasks and subtasks of these tasks by using automation when the user creates epic.
I was able to create tasks in epic, but I don't know how to create subtasks in these tasks.
Any help?
If you use Automation for Jira - you need second rule that will trigger on issue creation. Check summary and create subtasks.
Thanx for quick response @Sergei Gridnevskii
But how do I distinguish in the second rule whether the task that was created was created by automation or by the user?
Hello Martin,
My approch on your problem would be to create a second automation that triggers on the creation of a task and make sub-task here.
Have a good day.
Well the easiest way - by comparing the Summary of the ticket with a predefined string. This of course make it possible that someone uses this string and triggers your rule - but you may be creative, e.g. by using something like [Autotask785] Check server logsand then search for [Autotask785] in SummaryIf you do not like it - create a custom field like a checkbox "Automation" and fill it when you create tasks. In second rule check if it is empty and continue if not.
You can also use a different field for that. Labels for example or even a custom field.
Hi, Martin.
You can accomplish the creation of tasks and sub-tasks to a single epic in a single automation rule by using the branch component "For Most recently created issue.
Make sure to set the field "Epic Link" for tasks to the parent Epic. Sub-tasks are linked to tasks only, not to epics.
Here is a visual representation of an actual rule that creates tasks and subtasks to a newly created epic:
What if he is in a big organization and someone creates another issue at exactly same time?
Good point. I would try with "For Current issue" instead of "Most recently created issue".
@Kalin U
how will it look (I mean those branches), when I need to create more than one task in epic?
It looks like you're new here. Sign in or register to get started.