Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to add a set of parent tasks to epic using automation

George Davitaya September 25, 2024

 

Hey, everyone! I need your help My automation create an epic, but can't create a child task and pin it to the parent What steps do i need to add more?

 

Screenshot at Sep 25 15-26-52.png

2 answers

1 accepted

0 votes
Answer accepted
Bill Sheboy
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 25, 2024

Hi @George Davitaya 

Would you please clarify what you are trying to accomplish?

For example, if you want to create an Epic and then add child issues to it, the rule may branch to the most recently created issue to help set the parent:

  • trigger: some trigger
  • action: create issue (an Epic)
  • branch: to the most recently created issue
    • action: create issue, setting the parent to {{issue.key}}

 

Kind regards,
Bill

George Davitaya September 26, 2024

Thanks for the reply!
I need to create an epic on a certain query and create child tasks to it, but unfortunately I haven't succeeded so far

Screenshot at Sep 26 15-01-41.png

George Davitaya September 26, 2024

Can you please describe the step-by-step process and if you don't mind attaching a screenshot?
thanks in advance!

Bill Sheboy
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 26, 2024

What is not working as you expected with your rule?

Please post an image of the audit log details showing the rule execution.  That will provide context for what you describe as not working as expected.

George Davitaya September 27, 2024

Screenshot at Sep 27 11-15-06.png

Bill Sheboy
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 27, 2024

Are these issues in different projects? 

If so, the rule will need to have multiple-project scope, which is selected in the rule details at the top.  Your Jira Site Admin will need to make that change to the rule in the global rule settings.

George Davitaya September 30, 2024

Yes, it is usually designed for 2 projects, but the settings are already set as global

George Davitaya September 30, 2024

Screenshot at Sep 30 13-33-52.png

Bill Sheboy
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 30, 2024

What is the issue type hierarchy for your Jira site, in the global admin settings?

The built-in, default hierarchy is this:

  • Epic
    • Story, Task, Bug
      • Sub-task

 

That error seems to indicate that Epics are no longer parents of Tasks.

George Davitaya October 1, 2024

As you can see in the screenshot above, there's the same hierarchy there the problem is that we need to add some condition for linking child issues

George Davitaya October 1, 2024

You were right I found where the mistake was, thanks!

Like Bill Sheboy likes this
1 vote
Dick
Community Champion
September 25, 2024

Hi @George Davitaya ,

The branch is for doing something to the child-items, not creating them

You need to store the key of the created epic into a variable, i.e. {{newEpic}}

Then you create a story and put the variable into the epic link field.

 

Hope this helps,

Dick 

George Davitaya September 26, 2024

Thanks for the reply!
But unfortunately it didn't work for me, or I'm doing something wrong Screenshot at Sep 26 14-59-52.png

Dick
Community Champion
October 1, 2024

Hi George, 
In block 4 you create a variable named : Epic

In the fifth block you use the variable name; newEpic

These names should be the same. 

I hope this helps,

Dick

 

By voting for helpful posts and marking answers to your question, you're helping people with similar questions find a solution more quickly. Sharing is caring applies to knowledge as well :)

Suggest an answer

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

Atlassian Community Events