This article explains how to clone a batch of Jira issues, that are based on a shared component, using Jira Command Line Interface app.
Instructions
- In the Terminal/command prompt, go to the Jira CLI installation folder.
Provide the below action command along with the JQL parameter to clone issues:You can clone issues either to the same project or to a different project.
To clone a batch of issues into the same project, please use the below action command with the jql parameter. Here in the below example, zjcli is the project_key and TestComponent is the Component name. This command . clones all the Jira tickets based on the JQL results. For example, if there are two tickets returned by the JQL, those two tickets are cloned.
Code Block language text title Clone to the same project --action cloneIssues --jql "project = projectkeyzjcli and component = TestComponent"
This command clones all the Jira tickets based on the JQL results. For example, if there are two tickets returned by the JQL, those two tickets are cloned.
To clone a batch of tickets from one project to another project, please use the below action command.
Code Block language text title Clone to different project --action cloneIssues --project "secondprojectkeyzjcli" --jql "project = firstprojectkeyzjiracli AND component = SecondComponentTestComponent" --autoComponent
Info |
---|
|