Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,360,262
Community Members
 
Community Events
168
Community Groups

Creating tasks as child issues of epic issue - Automation

I would like to create Epic issue with predefined children task issues automatically. 

 

When Created Issue = Epic

Than Create Issues as children to the triggered issue:

Task1

Task2

Task3

 

Thank you for your help.

5 answers

1 accepted

0 votes
Answer accepted

I have the same problem. This automation does not contain a rule to place the issue as a child issue of an Epic in my Next Gen roadmap. The automated tasks just appear in the backlog. 
Project_automation_-_Jira.jpg

How do you set up automation to set up daily Tasks to an existing epic?

I have the automation set up to give me a daily task. However, I now need that daily task to populate under an existing epic.

How to achieve this in Jira server using script runner (Issues in Epic)

So I have a slightly different issue with this.  I need to create an Epic and then create stories attached to the epic.  But instead of the trigger being to create an issue, we need to have the trigger be a schedule.  They are quarterly tasks that have to be done.

Any thoughts on this?

This last run, it created the Epic needed on the scheduled day/time.  And it created the tasks needed.  However, it didn't link the tasks to the created Epic.

Anyone know what I'm missing?

I have done something similar that I suspect might be the answer for you. I created an epic and an epic task on a manual trigger.

 

Screenshot 2020-09-30 at 07.58.42.png

You can see I am creating an epic in one project and adding a task to the epic from a different project. I also send an email to the initiator to remind them to update the epic and child ticket. Hoping "Current Issue" resolves your problem in combination with the branch.

I have an Epic created on a schedule and then use the branch - "Most Recently Created New Issue" to create Tasks within it, using the "Epic Link" and Trigger Issue.

EpicAutomation.png

However, what I can't do is then create sub-tasks under some of those Tasks.

Creating sub-tasks off the current or trigger all come under the Epic directly, rather than the most recent Task.

I can't nest another branch within that branch either, and trying it from the root just links back to the original Epic.

0 votes
Jack Brickey Community Leader Apr 15, 2020

Hi Jakub,

here is an example of an automation I created for the same. i create multiple tasks and sub-tasks as well.

Project_automation_-_JIRA.jpg

Thank you very much. But this example creates a task which doesn't belong to the epic I have just created. 

I would like to have task as a child to the epic.

Like # people like this

I have the same request, to create an epic and automatically create child issues

Like # people like this

I do have the same problem. I was able to create issues when an epic was created but wasn't able to connect them to the newly created epic. Or any suggestion from your side @Jack Brickey ?

FinalIy I was able to solve this problem doing the following:

screenshot_03.png

The outcome looks like this:screenshot_02.png

Like # people like this

Hi @Luki

Great, it works perfectly. Thank you so much! 

Like # people like this

@Luki Thank you so much! This is making my Nex Gen project super automated :D

Like # people like this

Can someone advise what is the "Trigger Issue" in the Epic Link..

Like Josep Lluis Perez likes this

@Luki I have tried both of the above and i am still not getting a positive result. We use kanban only right now and have a hierarchy of :

initiative

epic

child issues

 

The child issues are issue types we created such as step 1, step 2 etc within our org's workflow. Bottom line, when i follow the above steps, no child issues are added, as if they are not even being made. I read some where that you need script runner for the cloud automation to work; is this true? do you guys all have script runner in your bundle as well to execute automation.

 

Thank you for any help; we are trying to vastly reduce our setup time for our projects

nevermind! i figured it out!!

@BrentBot_  don't never mind - what did you figure out, please? :)

Even I tried the same but no results. Can any one explain what else to be done after setting up "Trigger Issue" in the Epic Link.

I did also not work for me, but I was able to fix it, just by adding a "refetch data" just before the actual creation of the child issue. 

Screenshot 2021-11-22 at 15.58.29.png

Like birgit.nigulas likes this

I'm not getting any of those options, just copy from...Screen Shot 2022-05-05 at 8.06.03 PM.png

Like Isabel Kaiser likes this

@Mourad Marzouk If the issue that starts the automation is the epic you want to attach children to, you can use {{triggerIssue}}
if the epic is in a branch you can simply use {{issue}}

{{issue}} simply represents the current acting issue
Good luck

Like # people like this

Thank you, This works perfectly for me.... So far. :)

My tasks are within my Epic when I follow the steps above but when looking at the List view, each of my tasks are separate and not nested under my Epic. I feel like I have tried everything to try to put them under the Epic

> Goal: I can collapse and expand the Epic to see the Tasks in the List view

> Current Status: In the List view, the Epic and Task are not nested, so I cannot collapse or expand to get the associated tasks, (see picture - the expand arrow does not list anything underneath)jira.PNG

I am having the same issue @Sara Palmitessa  , were you able to figure out ?

@Joao Borges Argh, No! - I have not been able to figure it out and it is driving me nuts to see all of my Epics AND tasks on my List View.  As far as I know, it is not a capability yet but I could be wrong.  Anyone who knows how to fix it and nest the tasks under the Epics, please let me know!!!

Like Jeffrey Dickey likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Site Admin
TAGS
Community showcase
Published in Jira Software

An update on Jira Software customer feedback – June 2022

Hello Atlassian Community! Feedback from customers like you has helped us shape and improve Jira Software. As Head of Product, Jira Software, I wanted to take this opportunity to share an update on...

5,021 views 18 32
Read article

Atlassian Community Events