I am currently using below rest api for non-cloud jira server to fetch assignees, it is just giving maximum 100 assignees, and pagination is also not working after 100 though many users are present.
<Base url>/rest/api/2/user/assignable/search?project=<project key>&startAt=50&maxResults=100
I need all the users of the jira connection, but limited users are coming.
Welcome to Atlassian community!
Unfortunately, by default, the REST API returns 50 results which can be further set to maximum of 100 using 'maxResults=100'. We will have to use the pagination properties like 'startAt' to retrieve the other results. So, it is better to try to narrow down your search.
Hope this helps.
Thanks,
Vamsi
Hi Vamsi
I need all the users, but this pagination is not working after 100 i.e., I can't startAt=101 and get results. Everytime it is just giving 100 users only.
<Base url>/rest/api/2/user/assignable/search?project=<project key>&startAt=101&maxResults=100
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Shivani chittauri That's because that particular endpoint no longer supports the >startAt< parameter. So you go with user #0 to #99 and that's it. This change broke many of our client's daily tools, unfortunately Atlassian doesn't seem to be willing to finally fix their *BS* :-/
You may want to read for yourself:
https://docs.atlassian.com/software/jira/docs/api/REST/9.10.0/#api/2/user-findAssignableUsers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Valandriel Sun @Shivani chittauri @Vamsi Kandala is this issue still there? Or is there a workaround for this?
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.