Forums

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

Possible to return only the name and ID for all projects?

Broham
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!
October 19, 2022

I have a dropdown that I am loading with the name/id of all available projects.  To load this dropdown I am using the deprecated endpoint GET /rest/api/2/project.  I've run into an issue where one customer has thousands of projects, which is causing the response to be massive, which is causing NGINX to throw an error on the response.  We are already developing an update that will use the V3 Get Projects Paginated endpoint so we can search, but in the mean time I need to figure out something that will allow this customer to load their dropdown.  Updating the NGINX limit is an option, but I would prefer not to go that route.

What I'm wondering is if it is possible to specify which fields should be returned by the API. Specifically I only need the Project ID and the Project Name so that we can load the dropdown.  Is there any way to specify which fields should be returned by the GET /rest/api/2/project endpoint?  If not, is there any way to do this through a different endpoint?  The one caveat is that it must return all projects, which the V3 endpoint will not do.  

NOTE: I mentioned this above but just to hammer it home - I realize this is a deprecated endpoint and that we should move to the Get Projects Paginated endpoint and implement searching.  That is already in process, but we need something to get us through until then.  

0 answers

Suggest an answer

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

Atlassian Community Events