Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This article explains the way how to clone a batch of tickets that are based on a shared component using Jira Command Line Interface app. 

Instructions

  1. Create a component in your Jira instance.
  2. Provide the below action command along with the JQL parameter to clone issues.:

    1. To clone a batch of issues into the same project, please give use the below action command. 

      Code Block
      languagetext
      titleClone into to the same project
      --action cloneIssues --jql "project = projectkey and component = TestComponent"

      The above This command will clone clones all the Jira tickets based on the JQL results. For example, if you have 2 tickets for the JQL results then these two issues will be there are two tickets returned by the JQL, those two tickets are cloned.

    2. To clone a batch of tickets from one project to another project, please give use the below action command.

      Code Block
      languagetext
      titleClone into other to different project
      --action cloneIssues --project "secondprojectkey" --jql "project = firstprojectkey AND component = SecondComponent" --autoComponent



Info
It is recommended to test this scenario in a test environment before deploying it in production.