Clone EPIC & Stories to New Epic and link New Stories via Automation

Melissa Lato February 1, 2023

I have been trying to write a manual automation rule to clone an EPIC (or the selected issue) with all its sub tasks and then link them all as they were in the original EPIC:

image.png

I have tried many variations of this but all the Stories seem to stay linked to the original EPIC. I feel like I am so close that someone hopefully will be able to confirm the final steps for linking them up.

 

Thanks in advance.

5 answers

1 accepted

3 votes
Answer accepted
Mark Segall
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 1, 2023

Hi @Melissa Lato - You'll need to do something like this:

  • TRIGGER: Manual
  • CONDITION: Issue Type = Epic
  • ACTION: Clone Issue
  • ACTION: Variable
    • varEpic
    • {{createdIssue}}
  • BRANCH: Stories (or other issues in Epic)
    • ACTION: Clone Issue
      • Epic Link: {{varEpic}}

Note - There are some caveats with using automation for this:

  1. Due to how branching is processed (threaded), the issues will not necessarily clone in the same order
  2. Depending upon how many issues reside in that Epic, you may run into execution limits.
Melissa Lato February 1, 2023

It worked ! Thank you sooooo much!! Also for listing the steps in such an easy to follow format! 

Like Mark Segall likes this
Melissa Lato February 1, 2023

For those that might like it in picture form: 

image.png

Grant McCracken February 16, 2023

@Mark Segall 

I have tried to recreate this, and seem to be running into problems. The Epic will clone, but seem to not get subtasks to work.

Mark Segall
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 16, 2023

Hi @Grant McCracken and welcome to the community!

Quick question - Are you doing this against a Team Managed project or a Company Managed project?  If Team Managed, you'll need to replace Epic Link with Parent.  If you've validated that, please share a screen shot of your last clone issue action.

Grant McCracken February 17, 2023

Hi @Mark Segall thanks for the welcome.

How would i check that, I believe I am company managed project. But I can't confirm that 100%

Can you tell me how I can give you the correct answer?

Mark Segall
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 17, 2023

Inside the project, at the bottom of the left navigation, it'll show:

You're in a <company/team>-managed project

Like Esra KoktasAdiguzel likes this
Michael Da Costa
Contributor
February 22, 2023

Hi @Mark Segall i'm having a similar issue and am unable to clone the subtasks after following your instructions. I'm probably doing something silly but i'm new to automations.

My project is team managed


Additionally i cannot see the 'Parent' option available only 'Epic Link'?

Clone.png

 

Thanks

Michael Da Costa
Contributor
February 22, 2023

Please ignore ive managed to figure this out. Thanks

Like Mark Segall likes this
Grant McCracken February 22, 2023

@Mark Segall 

I am in a company-managed project.

Grant McCracken February 22, 2023

@Michael Da Costa 

What was the secret sauce you found to figure it out?

Umer Saeed
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 23, 2023

 

@Michael Da Costa - How did you figure it out? I'm on team managed and don't see PARENT in the drop down option either.

Michael Da Costa
Contributor
February 23, 2023

hi @Umer Saeed i used EPIC Link and it worked fine.

Noah Brown February 23, 2023

hi @Umer Saeed 

In my Jira cloud environment, the field name is "parent". Epic link is not available. But maybe it is a matter of Team vs Company managed Projects

Cameron Bassett
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 19, 2023

@Michael Da Costa image.png

How did you get it to work with the subtasks/issue cloning?

0 votes
Sveni
Contributor
September 7, 2023

@Mark Segall 

what do you mean with :

Make sure that you're actually referencing {{varEpic}} in the Branched Clone Issue action for the relevant field (Epic Link/Parent)

???

0 votes
Chandan Bhome June 7, 2023

I created this Automation rule, however when I clone the Epic it not keeping the child storiesimage.png

Mark Segall
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 7, 2023

Hi @Chandan Bhome and welcome to the community!  I would verify the following:

  1. Project Type: Depending upon whether you're working with a company managed or team managed project you'll have a different field focus for your Branched Clone Issue action
    1. Company Managed: Epic Link  
    2. Team Managed: Parent
  2. Make sure that you're actually referencing {{varEpic}} in the Branched Clone Issue action for the relevant field (Epic Link/Parent)

If neither of these work for you, please create a new question (it helps keep this one from getting too unruly and eliminating the notifications everyone associated with this question are getting). Be sure to include screenshots of your Create Variable and branched Clone Issue actions.  

Chandan Bhome June 12, 2023

Thanks Mark, I realized that cloned stories were sitting in the backlog rather than attaching to the clone epic.

Is this the expected behavior or should I create a new question?

Mark Segall
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 12, 2023

They should be tied to the epic.  If you're not seeing them, please create a new question (you can @mention me) with screenshots of your create variable and branched clone issue actions

0 votes
Diego Guerra
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 28, 2023

Hi Guys, here I'm with the same issue. Epic and Story was cloned but sub-tasks not.

 

@Mark Segall could you help me to solve this ?

 

My automation:

Captura de tela 2023-03-28 191336.png

0 votes
Grant McCracken February 22, 2023

Suggest an answer

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

Atlassian Community Events