nyyManni / jiralib2

Lisp bindings to JIRA REST API (used by Ejira)
GNU General Public License v3.0
21 stars 21 forks source link

allow `max-results` to be configured for user fetch API #10

Closed kushal-kumaran closed 2 years ago

kushal-kumaran commented 2 years ago

The jiralib2--get-users function uses a fixed value of 1000 for the number of users it fetches at a time. However, I'm working with a server that has set its server-side limit to a smaller value (100). Since the API result data does not indicate this truncation in any way, the function thinks that the result is complete, since it is smaller than expected.

Would a PR to make max-results configurable be acceptable?

kushal-kumaran commented 2 years ago

Ignore this. According to the API documentation, the assignable users API is not paged. It appears to be designed exclusively for completion-as-you-go interfaces like the Jira web interface, and does not provide a way to fetch the exhaustive user list.