Hello. I am using REST API "/rest/api/3/project/search?expand=insight" to get a list of projects and their last update but I am only getting 50 out of 180 projects. Is there something that is missing in this REST API?
Hello @Jesse Ortega Jr
Reviewing the documentation for the endpoint:
...that endpoint returns paginated results, and the maxResults parameter by default is set to 50.
You need to call the endpoint multiple times to get all the pages of data. Refer to information in the Pagination section:
https://developer.atlassian.com/cloud/jira/platform/rest/v3/intro/#expansion
You can also try increasing the maxResults parameter and including that in your endpoint call. The pagination section talks about how to find the maximum value that can be used for maxResults for a given endpoint.
Thank you both for your response and help with this. Unfortunately, I'm still facing issues, but the good thing is that I was told this is no longer needed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The default maxResults is 50 projects, and once should be able to change parameter to return more results. After that point, paging must be used with the startAt parameter. You should experimenting to increase the parameter for maxResults to see if more can be returned.
Take a look at this documentation -
Hope this helps.
Best, Joseph
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.