Forums

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

Is it possible to clone a story and all the linked stories?

Andy Wan September 23, 2024

I have a "template" story for work required, which has multiple linked stories with it.

Is it possible to clone to "main template" story, and also all the links (creating new stories for the linked stories)?

I have tried to clone the main story, but it only adds the links to the new cloned story, it does not create new story links.

I have tried story + sub-tasks, but the limitation of sub-tasks means I am unable to create further sub-tasks of the issue.

Thank you

4 answers

2 accepted

1 vote
Answer accepted
Luka Hummel - codefortynine
Atlassian Partner
September 24, 2024

Hi @Andy Wan and welcome to the community!

Jira’s default clone function only copies the issue, not the linked issues. For a more straightforward solution, consider using our app Deep Clone for Jira.

With the right JQL Filter

issue IN linkedIssues("TEST-1")

it allows you to clone issues, including linked issues and sub-tasks, making it much easier to duplicate your template stories and their associated tasks without complex automation.

 

0 votes
Answer accepted
William Thomaz Calesco
Contributor
September 23, 2024

Hi @Andy Wan 

You might need to create an automation to this, like the one below: 

FireShot Capture 045 - Rule builder - Automation - Jira - mignow.atlassian.net.png


If you use the `clone issue` component then you will fall in the same scenario (it will link to present issues and not creating new ones for each link) 

so you need to create a new issue, copying the fields for the original issue, then leave the 'linked issues' field empty.

next it will create a variable for the new issue created and store

it will run to each linked issue of the original (issue that triggered the event) and create new issues, make sure to copy all fields, and when it comes to the issue links, use the variable {{MainIssue}} created before.

----


Cons: You will need to update this automation everytime you add a new field to the screens (with values) 


Andy Wan September 24, 2024

Thank you for the guidance William, is there anywhere I can see where my automation tool will go without running it in my own project? I am unable to delete stories, so I am worried I'd be creating a lot of spam in the work project.

 

I tried this twice and I have updated it a third time, didn't seem to want to copy/clone the linked stories

 

Capture.JPG

William Calesco
Contributor
September 24, 2024

Hi @Andy Wan If you have Premium, you should be able to use the sandbox.
If not, create a new project, clone the issues (or create them manually) into this new one, and then test it there... This way prevents you from messing with the hot project

0 votes
Clara Belin-Brosseau_Elements
Atlassian Partner
November 21, 2024

Hello @Andy

If I understand correctly, you’re trying to clone a story and its linked stories as well, right?

I have a solution that might answer your specific use case.

You can try our app Elements Copy & Sync as following:

1. Create an Elements Copy & Sync recipe to clone your story

2. Create an Automation rule to call this recipe

3. Add a step to the Automation rule to clone the linked stories using the same recipe

image (16).png

 

Let me know if it’s not clear enough!

In any case, the app is for free during 30 days (and it stays free under 10 users).

0 votes
Andy Wan September 24, 2024

Hello,

Apologies, it's kind of a follow on question, but different, wasn't sure if I'm meant to open a new ticket.. But..


I wanted to add Definition of Done, the field is pickable, but I wanted to just copy the text I have, yet it isn't an option, i.e. {{issue.description}}

 

Capture.JPG

Suggest an answer

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

Atlassian Community Events