Update: Jul/26/2024
Since the Epic Link field is getting deprecated, now you need to use the Parent field to link Standard issues to their Epic parent:
Original Post:
Currently, there is no way to directly clone the stories and subtasks under an Epic in Jira. Indeed there is a feature request in place to add this functionality:
As a workaround, you can use Jira automation to solve this problem. For this, you will need to create the next two automation rules in your project:
Clone the Epic
Save the epic ID
Clone each child linking the new issue to the new Epic, using the Parent field (Epic Link will be deprecated), and append the original issue key to the newly created issue; this will help to identify the issue in the next rule to clone the subtasks.
Since the result of the 1st rule will trigger this new rule, you need to enable the checkbox shown below:
Create a variable to know from which original issue the new issue was cloned.
smart value: {{issue.summary.replaceAll("(.*key:)","")}}
Remove the old key from the summary string:
smart value: {{issue.summary.replaceAll("(key:.*$)","")}}
Look for subtasks from the original issue:
Clone each subtask, selecting the trigger issue as the parent:
If you need to clone the issue links or the attachments you can add the fields in the clone action as follows:
Please note some elements can't be cloned, like the history, comments, or logged time.
I hope that this article is useful for you and helps to improve your team's productivity using Jira and Jira Automation.
Jorge H
50 comments