Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paginated API call support #204

Open
aik099 opened this issue Sep 4, 2024 · 0 comments
Open

Paginated API call support #204

aik099 opened this issue Sep 4, 2024 · 0 comments

Comments

@aik099
Copy link
Collaborator

aik099 commented Sep 4, 2024

The JIRA REST API supports pagination ( see https://developer.atlassian.com/cloud/jira/platform/rest/v2/intro/#pagination ).

We've implemented it only for issues (the Api::search method has $start_at and $max_results parameters and Walker class makes use of them).

There are many more API methods in JIRA (see https://developer.atlassian.com/cloud/jira/platform/rest/v2/ ) , that also use pagination, and if not handled properly, then the developer needs to write lots of boilerplate code to handle it manually.

Needs to create a universal walker (probably callback-based) that can iterate any API response, that is paginated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant