Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,558,367
Community Members
 
Community Events
184
Community Groups

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

0 comments

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events