Many REST API requests will only return a certain number of results, typically 25. I need to see all of them. The maximum results parameter cannot be reset, but the response includes a parameter called either startAt or start-index which is set to 0 by default. How do I set this in my URL string to, say, 0, 25, 50 etc. to see the first, second and third set of 25 results?
Community moderators have prevented the ability to post new answers.
Checkout these 2 parameters:
startAt | the index of the first issue to return (0-based) | |
maxResults | the maximum number of issues to return (defaults to 50). The maximum allowable value is dictated by the JIRA property 'jira.search.views.default.max'. If you specify a value that is higher than this number, your search results will be truncated. |
Is it possible to obtain a similar result when using the cloud env?
Something like:
https://mydomain.atlassian.net/admin/users?activeFilter=active&start-index=10&maxResults=899
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Jobin Kuruvilla [Adaptavist]
i am using following code,
UserSearchService userSearchService = ComponentAccessor.getComponent(UserSearchService.class);
UserSearchParams userSearchParams = (new UserSearchParams.Builder()).allowEmptyQuery(true).includeActive(true).includeInactive(true).maxResults(200).build();
is there any way to set startAt in this code. Basically am trying to display the user list i need to set pagination for this table.
Thank you,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yep. And for bamboo it's start-index and for stash it's start.
I'm running aground trying to figure out how to craft the URL to correctly set the parameter
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.