Deleting priority returns 504 Gateway timeout
Platform Notice: Cloud - This article applies to Atlassian products on the cloud platform.
Summary
When trying to delete a priority having ~65k issues assigned to it this might fail with a 504 Gateway Timeout.
Diagnosis
In UI you should see an error similar to the one below:
Cause
Due to the large number of tickets assigned to that priority, the request will get aborted after some time and the deletion process will fail. This problem is being tracked in our public-facing issue tracker so make sure to add yourself as a watcher to receive further updates.
JRACLOUD-81770 - Getting issue details... STATUS
Solution
Your team can use our public APIs to overcome the timeout issues we are receiving in UI. Right below follows a sample in cURL that can be used by your team to delete the desired priority.
curl --request DELETE \
--url 'https://your-domain.atlassian.net/rest/api/3/priority/{id}?replaceWith={replaceWithNewPriorityID}' \
--user 'email@example.com:<api_token>'
For more details about this API parameters and even to have access to snippets in other languages, please take a look at the following link:
The above API is experimental and is going to be updated soon, so pay attention to this changelog.