You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
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?
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:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.