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
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
@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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.