Is it possible to clone a story and all the linked stories?
Asked by Andy Wan:

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


Answers:
author: Luka Hummel - codefortynine
body: Hi [@Andy Wan](/t5/user/viewprofilepage/user-id/5599447) 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](https://marketplace.atlassian.com/apps/1218652?utm_source=atlassian&utm_medium=referral&utm_campaign=deepj-new-reach-com-2819313).

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.


author: William Thomaz Calesco
body: Hi [@Andy Wan](/t5/user/viewprofilepage/user-id/5599447)   

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

![FireShot Capture 045 - Rule builder - Automation - Jira - mignow.atlassian.net.png](https://community.atlassian.com/t5/image/serverpage/image-id/348777iC809B8773533A7EE/image-size/large?v=v2&px=999 "FireShot Capture 045 - Rule builder - Automation - Jira - mignow.atlassian.net.png")

<br />

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.  

----  

<br />

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

<br />

comments: author: Andy Wan
body: 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](https://community.atlassian.com/t5/image/serverpage/image-id/348879i97B178141ECAE537/image-size/large?v=v2&px=999 "Capture.JPG")


author: William Calesco
body: Hi [@Andy Wan](/t5/user/viewprofilepage/user-id/5599447) 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  


author: Andy Wan
body: 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..

<br />

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](https://community.atlassian.com/t5/image/serverpage/image-id/349034i696440AA078C3796/image-size/large?v=v2&px=999 "Capture.JPG")


Tags: cloud

jira-cloud