API get projects by categoryid not working

Jeffrey Bistrong
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.
March 7, 2024

Following the documentation here: https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-projects/#api-rest-api-3-project-search-get

 

 

Trying to get all projects by category, but I am getting results from other categories

 

https://XXXX.atlassian.net/rest/api/3/project/search?categoryID=10004

 

Monosnap The Jira Cloud platform REST API 2024-03-07 12-31-29.pngget projects by category.png

1 answer

1 accepted

1 vote
Answer accepted
David Nickell March 7, 2024

The REST APIs URLS are case sensitive.  I think your problem is the categoryID should be categoryId.

 

this worked as expected for me:

https://ecosystem.atlassian.net/rest/api/3/project/search?categoryId=10070

And I only know this from pulling my hair out multiple times by making this very same mistake.

Jeffrey Bistrong
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.
March 7, 2024

thank you David, my browser auto formats it to both captital which is really annoying, but it worked in Postman

Jeffrey Bistrong
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.
March 7, 2024

turns out clearing my browser history fixed the issue for access in the web browser, because i had previously visited the site with ID, every time i would input Id it would auto change it to ID

Suggest an answer

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

Atlassian Community Events