Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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,456,217
Community Members
 
Community Events
176
Community Groups

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

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 Nov 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

Atlassian Community Events