Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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

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.
Feb 01, 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.

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

Like Mark Segall likes this

For those that might like it in picture form: 

image.png

@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.
Feb 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.

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.
Feb 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

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

Please ignore ive managed to figure this out. Thanks

Like Mark Segall likes this

@Mark Segall 

I am in a company-managed project.

@Michael Da Costa 

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

 

@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.

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

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

@Michael Da Costa image.png

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

@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)

???

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.
Jun 07, 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.  

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.
Jun 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

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

Suggest an answer

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

Atlassian Community Events