Get issue types for specific project via REST API

How can I get a list of all available issue types for specific project?

I know, how to get issue types for specific enum, for example, "87-2":

curl -X GET 'https://my-youtrack-server/api/admin/customFieldSettings/bundles/enum/87-2/values?$includeArchived=false&$skip=0&$top=50&fields=$type,name' -H 'Accept: application/json' -H 'Authorization: Bearer MY-TOKEN' -H 'Content-Type: application/json'

Response is:

[{"name":"Bug","$type":"EnumBundleElement"},{"name":"Epic","$type":"EnumBundleElement"},{"name":"User Story","$type":"EnumBundleElement"},{"name":"Task","$type":"EnumBundleElement"}]

But how can I discover all available issue types for the project with specific ID?

1 comment
Comment actions Permalink
Official comment

Hello Alarin,

I'm sorry for the delayed response.

If I get your question correctly, you just need to get the right bundle ID to get all available values from that bundle.

Please check this article: It describes how to add value to a certain bundle, but you can use the same logic and make a request to the same URL as in the final step using GET and not POST.

Let me know if I can help any further, I'll be happy to.

Please sign in to leave a comment.