Are there any Jira REST APIs that can allow the migration of issues?

Apoorva Sharma November 30, 2022

Hi,

We are trying to develop an application in Forge which facilitates the issue migration i.e. the issues can be migrated from one issue type to other. 

Scenario: The user wants to migrate an issue of Task issue type to Subtask.

Can you please suggest if there are any REST APIs provided by atlassian for Jira cloud that could facilitate the same?

1 answer

1 accepted

0 votes
Answer accepted
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 30, 2022

Hello @Apoorva Sharma 

There are two different things you are talking about here.

1. Changing the issue type from one value to another that is at the same level; i.e. changing a Story into a Bug.

2. Changing an issue type from one value to another that is at a different level; i.e. converting a Task to a Subtask or a Subtask to a Task.

 

For #1 you would use the rest/<ver>/issue/<issueKey> endpoint to set the issuetype field.

PUT https://<instancename>.atlassian.net/rest/3/issue/<issueKey> 
{
"fields": {"issuetype":{"id":10002}}
}

 

For #2 there is an open change request:

https://jira.atlassian.com/browse/JRACLOUD-27893

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events