The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

How to Find Unused Issue Types in Jira Cloud Using REST API in Python

The algorithms is this:

  1. Get all issue types, using HTTP GET <server>/rest/api/3/issuetype
    1. Build a dict of all issue types (dict key is ID, since issue type name is not unique)
  2. Get all projects, with the issue types of each:
    1. /rest/api/3/project/search?expand=issueTypes
  3. For each project, get its contained issue types
    1. For each issue type, add the project to the issue type in the dict created in 1.1
  4. Getting the results:
    1. Iterate on the dict
    2. if an issue type has no associated projects, it's unused

Notes:

  1. You'll need to generate an API token to use the REST API
  2. The above REST API endpoints return paginated data, so you will need to iterate on the results, using the total,  startAt and maxResults, as explained here:
    1. https://developer.atlassian.com/cloud/jira/platform/rest/v3/intro/#expansion

1 comment

Comments for this post are closed

Community moderators have prevented the ability to post new comments.

Yatish Madhav
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 Champions.
January 9, 2025

Thanks so much @Amir Katz (Outseer)  - this is helpful!

Out of 104, I only have 7 unused ... It's a start I guess :D

TAGS
AUG Leaders

Atlassian Community Events