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

JQL: add support for fetching all the results by way of pagination #1720

Closed
jvanegmond opened this issue Apr 14, 2017 · 4 comments · Fixed by #3304
Closed

JQL: add support for fetching all the results by way of pagination #1720

jvanegmond opened this issue Apr 14, 2017 · 4 comments · Fixed by #3304
Labels

Comments

@jvanegmond
Copy link
Contributor

Issue Summary

The JQL integration returns only the first 50 issues. This is the default number of issues returned via JIRA REST API. A mechanism should be implemented where a query is executed multiple times to fetch subsequent issues from JIRA.

Steps to Reproduce

  1. Configure JIRA integration
  2. Create any JQL query which returns more than 50 issues
  3. Execute the query

Expected: More than 50 issues returned.
Actual: Only 50 issues returned.

Technical details:

@denisov-vlad
Copy link
Member

You can set "maxResults" option to get more than 50 rows. It is not a bug, it's default JQL limitation.

@arikfr
Copy link
Member

arikfr commented Apr 30, 2017

Merged #1721.

While @denisov-vlad is right that you can just specify this in a query, it looks like 1K is a reasonable limit.

@arikfr arikfr closed this as completed Apr 30, 2017
@justmiles
Copy link
Contributor

It doesn't look like the 1K bump resolves this issue. The API limits the results to 100 so setting maxResults above that is effectively ignored. To return more than 100 results, we would have to paginate through the API.

Could we re-open or should I create another issue to implement pagination?

@arikfr arikfr changed the title JQL only returns first 'maxResults' results JQL: add support for fetching all the results by way of pagination Jan 16, 2019
@arikfr arikfr added the Backend label Jan 16, 2019
@arikfr arikfr reopened this Jan 16, 2019
@arikfr
Copy link
Member

arikfr commented Jan 16, 2019

@justmiles I reopened this.

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

Successfully merging a pull request may close this issue.

4 participants