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:
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.