Here is the endpoint I'm hitting:
https://<our_domain>>.atlassian.net/rest/api/3/project/search?expand=description,lead&maxResults=1
Hello @ben_wilen
Welcome to the Atlassian community.
It appears that the endpoint returns only non-archived, non-deleted projects by default, and since they are live projects it appears to exclude the archived-related fields.
You can search the archived projects by adding status=archived to the parameters.
Adding to this...
The ?includeArchived=true parameter noted by @Aaron Pavez _ServiceRocket_ does not work with the /rest/v3/project/search endpoint.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Trudy Claspill Yep, seeing that and thank you for pointing that out! Just to make sure I'm not missing anything, are there any other statuses besides "active" that can be passed to the URL?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That information is in the endpoint documentation:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You're welcome!
If your question has been adequately addressed, please consider clicking on the Accept Answer button to mark your Question as Solved. This helps others searching the community find posts with validated solutions.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @ben_wilen
Can you check if this works?
/rest/api/3/project?includeArchived=true
The property for that can be found here:
Although the project is deprecated, now we need to use this project paginated:
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for the quick response @Aaron Pavez _ServiceRocket_ !
"/rest/api/3/project?includeArchived=true" returns the archive field, and "/rest/api/3/project" also returns the archive field.
Can you clarify "Although the project is deprecated, now we need to use this project paginated:"...does that mean the recommended method is to use the deprecated endpoint or is there a way to use the "project/search" endpoint and still get the archive field?
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.