How to clone an issue that has issue links to other Jira issues

This article explains how to clone an issue that has links to other Jira issues using the Run CLI actions in Jira app on a server.

Instructions

For this scenario, we use the cloneIssue and copyLinks CLI actions. 

  • cloneIssueCopy an existing issue to create a new issue. By default, if the issue is a subtask, it is cloned to the same parent. If the parent parameter is specified, a subtask can be cloned to a different parent. By default, the cloned issue is not linked to the original issue. For example, adding --link Cloners adds the normal clone link.
  • copyLinksCopy issue links when cloning an issue.

Ensure that the issue to be cloned has linked issues and subtasks to perform this command. 

  1. Let's consider the following example where an issue, JIRACLONE-1, is to be cloned within the same project, JIRACLONE, that has two linked issues: JIRACLONE-2 and JIRACLI-2:

  2. Navigate to Admin > Manage Apps > Run Actions to execute the following CLI action:

    --action cloneIssue --project "JIRACLONE" --issue "JIRACLONE-1" --copyLinks --copySubtasks

The result of the above CLI action is as follows:

Info

  • Make sure you have installed the Run CLI action in Jira app to execute Jira CLI actions.
  • It is recommended to test this scenario in a test environment before implementing it in production.