Forums

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

How to find the default issue type scheme?

Kevin Johnson
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 28, 2022

Hello,

From the REST API documentation I cannot see how to directly find the ID of an issue type. I'd like to find the ID of the Spike issue type. Is there a way to do this directly?

I think that if I can find the default issue type scheme the I can search that scheme for the Spike name and find its ID. How can I find the default issue type scheme?

The closest solution I can find is to get all issue type schemes (GET /rest/issuetypescheme) and then iterate through all schemes returned and find the one where name = "Default Issue Type Scheme".

Any help is appreciated.

Thanks,

Kevin

2 answers

0 votes
Fabio Racobaldo _Herzum_
Community Champion
April 29, 2022

Hi @Kevin Johnson ,

you can use the following rest api https://docs.atlassian.com/software/jira/docs/api/REST/8.22.2/#issuetype-getIssueAllTypes in order to retrieve all issue types defined in your instance. After doing that you can cycle on the list in order to get id based on issue type name.

Hope this helps,

Fabio

0 votes
Ivan Lima
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.
April 28, 2022

@Kevin Johnson, you can't directly get the IDs. You can get all issue types or issue type schemes, and the response returns a list of IDs. What are you trying to achieve? I assume that getting the IDs straight from the UI is not an option for your use case. Depending on how you're putting this script together, we may be able to contribute to that.

Suggest an answer

Log in or Sign up to answer