Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,296,128
Community Members
 
Community Events
165
Community Groups

Clone JIRA Ticket using REST API?

i want to clone issue project A to project B via JIRA REST API.

is there any solution directly use JIRA REST API?

if no solution, I'd like to try cloning in the way below.
please give me good opinions, thank you

<second solution>
1) all ticket search from project A (using rest/api/2/search)
2) create issue to project B (using above ticket list AND using rest/api/2/issue)

3 answers

/rest/internal/2/issue/issue-key/clone

Post? 

-Body "{"summary":"CLONE - test","optionalFields":{},"includeAttachments":true}"

Not found in API documentation? catch with developer console.

0 votes

Hi @JJJ,

You can also try our Jira cloud app Deep Clone for Jira.

It's possible to bulk clone thousands of issues at once and move them to other projects or instances. With the Deep Clone REST API you can automate cloning issues with your scripts.

We offer many other advanced cloning features that might be helpful for you.

0 votes

Hi,

There is no api to clone issue. You need to get the data of each issue

GET /rest/api/2/issue/{issueIdOrKey}

Then create a new issue in the project B.

POST /rest/api/2/issue

https://docs.atlassian.com/software/jira/docs/api/REST/7.6.1/#api/2/issue-createIssues

Thank you Mohamed,

i also agree :)

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you