Hi Team,
How to clone the whole Epic and child issues included in the Epic?
Curently I‘’m using the free version of Jira, so I would like to know that do we have this function? How to use it?
Much apperaciate if you can help with this questions, thanks.
Best regards,
Summer
Hi @Lin Zhang
Create an automation rule like this - note that the right-hand part shows what you need to enter for the "create variable"-step (highlighted in dark background within the logic of the rule.
And what you need to set in the last "create"-step...
We are on Jira Software cloud premium. I believe that if you can create automation rules, then the create-variable should be available. This was added to automation rules a while ago.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tried to set up the automation you share but it is not copying the epic. It does create copies of the child stories in the epic but the child stories have no sub-tasks copied from the original stories.
I think I am missing something :-/
Any guidance you can provide is greatly appreciated Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Sergey vc Peter was showing you how to create your own customised smart value, it wouldn't exist in the atlassian documentation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It does exist in Atlassian Docs: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Peter Youngman You are a legend! Thanks for not only specifying the possibility of doing this using an automation but also showing how to use the variable to store the intermediate epic key!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi!
To clone an epic, you also need to specify its epic name (step 3 "Then: Create new --> Same issue type in Same project").
Otherwise, the epic won't be cloned, only its stories will be copied. Also, you'll get the message that automation ended with some errors.
Btw, to add the Epic Name and Epic Link fields, you need to click the Choose fields to set and select them in a pop-up list.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is there any documentation? Epic Name or Epic Link form, where can I know the field names?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is automation is extremely helpful! Thanks everyone.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the automation - nicely done. Here are some things you may want to add to the automation:
Reporter
I didn't like that the reporter for the cloned issue was the Jira Automation user. So I updated all the creates to set the reporter to:
{{initiator.accountId}}
Example
Subtasks
The proposed solution above doesn't copy the subtasks (if they exist on the Epic). I had to create an additional "For branch" and an additional Variable.
a. The additional variable added was "newEpic" which uses the smart value:
{{createdIssue}
b. The for branch to add is "For: Sub-Tasks"
Details
Thanks again to Peter above for the original solution.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Complete Jira newbie here, I've tried to incorporate what you've suggested to copy across the subtask and it's coming back with "no related issues could be found" when looking at the audit log.
I'm struggling to identify any difference between the value from smart tag createdIssue and createdIssue.key?
Any suggestions?
Thanks
Robbie
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Lin - Welcome to the Atlassian Community!
We use an add-on called Deep Clone that will clone the Epic and all of the children. Otherwise out of the box Jira will not provide that.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Lin Zhang,
I am Marlene from codefortynine and the product manager of Deep Clone for Jira.
As @John Funk mentioned, it is possible to clone Epics and child issues included in the Epic.
After you've installed Deep Clone you would just have to
Deep Clone is easy to use and designed for every Jira user.
You can read more about the Deep Clone Epic Clone in our documentation, or watch the Epic Clone demo video.
Feel free to reach out to our support, if you have further questions or feedback.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Lin Zhang - Any update here? If this answered your question, can you click on the Accept Answer button above to close this one out? Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Marlene Kegel - codefortynine @John Funk yes, thanks for your help.
Beside, I have one more question, is that possible to clone the whole Epic across the different project?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry for the late reply.
Yes, you can clone and move the cloned Epic to another project or instance, while cloning.
I hope that answers your question?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Lin Zhang,
Deep Clone for Jira is a paid Marketplace app. The costs are calculated based on your instance size. (Update 2022-01-27: Deep Clone for Jira is free for instances with up to 10 users.)
But you can test Deep Clone for Jira for free for a minimum of 30 days.
You can read more about Deep Clone pricing on our Marketplace page.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I did pretty much what you have shown, above, only:
w3 main issues though:
Many thanks!
Laura
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Show us your rule
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Here it is. It's a manual, so When manually triggered.
Thanks,
L.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
From what I can understand by the ss, I'd suggest:
- Change de JQL condition from the first part. Add " Issuetype = epic and statuscategory!= Done
You are triggering the epic which is the father.
Below the branch "For stories( or other issues in epic)
- Add JQL condition " Issuetype != epic and statuscategory!= Done
- Then Clone to desired project. Fill the EpicLink field with the var you've just created
- Add transition to the status of destination workflow
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey, @Lin Zhang
I'm not sure if natively in the free version this feature is available.
I also tried to do this in a free cloud version even by automation, but I wasn't completely successful.
In the Standard version this option is completely released.
What you can try using the Standar version of the Cloud is to install the Script Runner plugin for the Cloud version, it is free for up to 10 users. In it you can work with some script that makes this cloning of epics with their child issues
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.