Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

need to change 9k issues to epic issue type via api

Jeffrey Bistrong
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 6, 2024

Has anyone been successful in changing an issue type via the API to an EPIC.

 

I can do it via the bulk move option but its painfully slow to do as I can only do 1k issues at a time

It also lets me do the move while keeping the epic name field blank, and only selecting an epic statusMonosnap Move Issues - Jira 2024-02-06 17-41-49.png

1 answer

0 votes
Miguel Ramon
Contributor
February 6, 2024

Hey @Jeffrey Bistrong - quick question are you also moving the issues between two different projects, or are you attempting to change the issue type within a single project?

Haven't tested, but if it's the same project and the original issue type shares the same workflow as the epic, you should be able to make a PUT to the /rest/api/2/issue/issuekey and send the epic issue type ID in the payload as such:

{"fields":{
"issuetype":{
"id":"<epic-issuetype-ID>"}
}
}

Let me know if this is what you're looking for - I think there is no easy way to move issues between projects via API endpoint, since it checks for so many configuration differences between them. Here's the feature request for that: https://jira.atlassian.com/browse/JRACLOUD-61359

Suggest an answer

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

Atlassian Community Events