-
-
Notifications
You must be signed in to change notification settings - Fork 291
Description
Describe the bug
jira issue list is more be able to paginate.
I initially realized that a loop that was iterating paginating over 30 issues at a time to have gotten an infinite loop. From there I simplified my command (in case my JQL would be too complex or any such) and see the following all return the very same two issues as result:
jira issue list --jql 'project in (SD)' --plain --no-headers --paginate 0:2
jira issue list --jql 'project in (SD)' --plain --no-headers --paginate 1:2
jira issue list --jql 'project in (SD)' --plain --no-headers --paginate 2:2
jira issue list --jql 'project in (SD)' --plain --no-headers --paginate=2
--paginate is just silently ignored.
Yet the limit still is a 100, which makes me unable to fetch the full set I want and need (currently 115)
- JiraCLI Version:
(Version="main", GitCommit="79067e2422df10e59f310bd6fd4979f43a1df0e7", CommitDate="2025-08-30T08:30:25+00:00", GoVersion="go1.24.1", Compiler="gc", Platform="linux/amd64")
- Are you using Jira cloud or on-premise jira server?
SERVER INFO
-----------
Version: 1001.0.0-SNAPSHOT
Build Number: 100289
Deployment Type: Cloud
Default Locale: en_US
- What operating system are you using? Also mention version.
Ubuntu 24.04.3 LTS (Noble Numbat)
- What terminal are you using?
tilix at version 1.9.6-2build1
To Reproduce
Steps to reproduce the behavior:
- run
jira issue list --jql <any works> --paginate 2:2 - compare it with
jira issue list --jql <any works> --paginate 0:2
And see it has no effect - the result is the same
I know that you had to change the endpoint.
After all the old version triggered
Error:
- The requested API has been removed. Please migrate to the /rest/api/3/search/jql API. A full migration guideline is available at https://developer.atlassian.com/changelog/#CHANGE-2046
jira: Received unexpected response '410 Gone'.
Please check the parameters you supplied and try again.
AFAICS that led to this commit d796db2 "fix: Update deprecated endpoint (#892)"
In there I gladly found that this is non surprising, #892 describes it.
Expected behavior
Ideally paginate to work, the result of the output above to be different and to be able to fetch more than 100 items again with --paginate 100:x. But otherwise at least - since it is known shouldn't --paginate 1:2 at least return an error that this is no more working instead of silently returning the same results no matter what?
Furthermore while the PR says:
... Users can still paginate using the maxResults parameter (e.g., --paginate=10).
But I was not yet able to get my results >100.
--paginate=110 is refused with Error: invalid argument for paginate: Format <from>:<limit>, where <from> is optional and <limit> must be between 1 and 100 (inclusive)
I might be missing the point, but how would I get the issues >100 in the example above?