How to get all the issue types under a Project?

jmweli
Contributor
November 6, 2023

Hi Atlassian Community Developers,

 

I am currently working a project where I am integrating Jira with ServiceNow.

I have a requirement to get all the issues under a specific project in Jira. In going through the Jira API documentation I came across this API which however does not seem to work for me: 

/rest/api/2/issue/createmeta/{projectIdOrKey}/issuetypes

 When I try the above API I get the error as shown in the attached screenshot.

Do you guys know why this is not working for me? 

Is there an alternative to this API that I can use to accompJira API Issue.PNGlish what I am looking for. 

Kindly advise please.

Thanks,

Johannes

 

1 answer

1 accepted

1 vote
Answer accepted
Laurie Sciutti
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 6, 2023
jmweli
Contributor
November 6, 2023

Hi Laurie, thanks for your response. It actually worked, it turned out I made a mistake however @Thuan_ Do Dang below pointed it out and I was able to test the API you provided above using postman and this time after correcting the typo it works as expected. Thanks you vey much, greatly appreciate it

Like Laurie Sciutti likes this
Thuan_ Do Dang
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.
November 6, 2023

Hi @jmweli ,

I checked the APIv3 above and it works. I think you used projectKey instead of projectId.

To get projectId by projectKey, try this API

/rest/api/3/project/{projectIdOrKey}
Like Laurie Sciutti likes this
jmweli
Contributor
November 6, 2023

Yes it does work!!

Thank you so much @Thuan_ Do Dang you are the greatest. I am new to Jira and I have a very tight deadline for the integration. You have saved the day.

Like Thuan_ Do Dang likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events