Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Automation to Clone an epic with all the child issues

Mickey Somra December 9, 2024

Can anyone assist in identifying the issue to fix with the Automation Cloning?

We're using the Jira Cloud and I'm looking to clone an Epic and all the child issues from one Epic to the new/cloned epic.

 

I am not going to get approval for an external app as I was directed to "Automation"..

 

Project Type: Team-managed software


Automation Rule

Image 1: Overview

image.png

Image 2: For: Children

image.png

Image 3: Then: Clone issue into

image.png

 

Example Epic (I have an epic with much more issues but I figured starting with something small would help)

 

image.png

When the rule runs, this is the generated message:

image.png

2 answers

1 accepted

1 vote
Answer accepted
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 9, 2024

Hello @Mickey Somra 

Welcome to the Atlassian community.

The issue has to do with the special nature of the Issues Linked trigger.

With this trigger there are two issues involved; the two issues being linked.

The rule has to determine which one is considered the trigger issue, to provide context for how the rest of the rule will execute.

It does this by looking at the link created between the issues and identifying one as the "source" of the link and the other as the "destination" of the link. The one determined to be the "source" will be considered the issue that triggered the rule.

To determine the source and destination issue in the link the rule looks at how the link between them is configured. Each link type has an Inward Description and an Outward Description. For the default Cloners link they are:

Inward Description  Outward Description 
 is cloned by clones

The trigger issue will be the one that falls under the Inward Description part of the link relationship.

When you look at the links section under SAP-171 does it say...

Is Clone By
-- SAP-206

...or...

Clones
-- SAP-206

 

The rule should run for SAP-206 when it falls under the heading "Is Cloned By" as you view SAP-171. This is supported by the messages shown in the audit log identifying SAP-206 as the "source" issue.

In that case the rule proceeds under the context that SAP-206 is the triggering issue.

SAP-206 is the new issue you created by cloning SAP-171, therefore SAP-206 has no children yet. So the Branch has no child issues to reference.

For your Branch I recommend that you instead use the Related Issue / JQL option.

Screenshot 2024-12-09 at 1.45.55 PM.png

That will retrieve all the child issues of the Epic that was cloned.

Mickey Somra December 10, 2024

Thank you for the detailed explanation and your solution worked for me.

Like Trudy Claspill likes this
0 votes
Prachi Bolar
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 10, 2024

Hello,

Welcome to the community :) 

Please check if this helps your case : https://community.atlassian.com/t5/Jira-articles/Clone-Epic-Stories-and-Subtasks-tree-with-Jira-Automation/ba-p/2316387

Thank you,

Prachi

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
atlassian, ace, atlassian community event, donation, girls who code, women in tech, malala fund, plan international, kudos, community badge, badge, atlassian badge, International Women’s month, International Women’s Day, women's month, women's day

10 for Change at Atlassian Community Events

Show up and give back by attending an Atlassian Community Event: we’ll donate $10 for every event attendee in March!

Join an Atlassian Community Event!
AUG Leaders

Upcoming Jira Events