Hi,
Reading the REST API v3 documentation for “User search” and trying to understand how to get all assignable users for an issue.
Consider a large Jira Cloud site, with say 2000 users.
Then imaging an issue that could be assigned to say 1500 of those 2000 users.
Now, how can we determine which users are assignable?
The API documentation for Find users assignable to issues doesn’t seem to explain how to do this, it says:
This operation takes the users in the range defined by
startAt
andmaxResults
, up to the thousandth user, and then returns only the users from that range that can be assigned the issue. This means the operation usually returns fewer users than specified inmaxResults
. To get all the users who can be assigned the issue, use Get all users and filter the records in your code.
Am I correct in reading this as if I get less than 1000 users in the response, then we’ve got all assignable users, but if the response has 1000 users, then we must check each of the remaining users to see if they are assignable?
In that case, we would end up with making 1001 REST API calls to get the full picture.
Would really be nice if the startAt / maxResults
could be used as one would expect with a REST API…
Kind regards,
Fredrik