Automation - create an epic and tasks inside that epic

Gema Ruiz September 17, 2023

Hi all, and thanks in advaced :)

I want to create a automation rule that every time a new project is created, the rule must creates an epic and some tasks inside that epic.

I am able to create the rule to create a new epic, but I cannot create the tasks inside the initial epic, I cannot find the way to relation tasks and epic, any idea/help, please?

 

Thank you very much

2 answers

2 accepted

4 votes
Answer accepted
Jack Brickey
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 17, 2023

Hi @Gema Ruiz , it would help to see an image of your automation rule so that we might explain how to add to it to create your final solution. In any event, you may also want to search the community as there are a lot of posts about creating Epics and tasks within that epic under automation. There are a number of ways to achieve this and I have presented a quick example below. The method below employees, the use of a variable to capture the epic key subset. It can be used when creating the stories where you need to define the Epic link.

IMG_2619.jpeg

Gema Ruiz September 17, 2023

Hi, this is exactly what I want to do... the problem is, since this morning (in Spain) most of the fields has disspeared , and I cannot add it to the epic or task..., I have to use advance configuration, and I don´t know how to set the value to the epic link field:

This is wrong and no working:

jira1.JPG

Gema Ruiz September 17, 2023

sorry, I was choosing the wrong type of issue.... sorry!

Gema Ruiz September 17, 2023

@Jack Brickey , please, could you show me how do yo create the variable? thank you a lot!

Gema Ruiz September 20, 2023

Hi again @Jack Brickey , please, could you show me how did you create the variable?

Thanks in advanced!

Jack Brickey
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 20, 2023

@Gema Ruiz , here is an example of a variable for the just created issue...

IMG_2641.jpeg

Like # people like this
Gema Ruiz September 20, 2023

Thank you very much!!

1 vote
Answer accepted
Hauke Bruno Wollentin
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 17, 2023

In that same automation rule you can use a branch rule to run against the least created issue. This should do :) 

Screenshot (6).png

Gema Ruiz September 18, 2023

I am not able to make it right...

I guess I have too many errors, coud you help me?

jira01.JPG

 

jira02.JPGjira03.JPG

 

jira04.JPG

Like Hauke Bruno Wollentin likes this
Hauke Bruno Wollentin
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 18, 2023

There is one closing bracket too much in your JSON but you do not need this at all I'd say.

You can use the Epic Link field like this:

Screenshot (7).png

The {{issue}} smart values relates to the branch issue.

Like Gema Ruiz likes this
Gema Ruiz September 18, 2023

It works!!!

Thank you very very much!!!

Like Hauke Bruno Wollentin likes this
Gema Ruiz September 19, 2023

Hi again,

I have a question when I use this brach rule:

jira05.JPG

 

is working for all the projects, or only for the project in which I created the previous epic?

I mean, if for some reason, someone is creating an issue in other project at the same time that this rule is triggered, it will create my tasks inside his epic? or the branch only works for the most current issue created in the project I created the previous issue?

Thank you very much.

Hauke Bruno Wollentin
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 20, 2023

This works for other projects or cross-project too, but the automation rule need to be global than.

In a global rule this type of branch rule really picks the last created issue, no matter what project the rule triggering issue is in.

Like Gema Ruiz likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events