Jira cli getIssueList returns fewer issues than expected

Julio Mugabe February 6, 2015

Hello there..

I expect the below line to return about 2000 issues, but when I run it it returns on 400, it there a way to bump up a limit to say 3000.

./jira.sh --server https://abc.com --action getIssueList --columns 'key,reporter,assignee,"Auto Lead"' --search "filter = my_filter" --outputFormat 999 --file "/data/jira-next/jira-cli-4.0.0-SNAPSHOT/jira_other_fields.csv"

Thanks..

2 answers

0 votes
Bob Swift OSS (Bob Swift Atlassian Apps)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 6, 2015

The JCLI getIssueList doesn't have a limit (other than your client's java memory setting). It should return all issues that satisfy the filter. There has been a report of a case that JIRA was not returning all the data so a new REST based implementation was added and this did work correctly in that situation. This is documented in JCLI-492. To use the new support use the jql parameter (instead of search) with your direct JQL or using the JQL: filter = "<my filter name>".

0 votes
Timothy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 6, 2015

There are a number of search configurations you need to check before assigning the blame to CLI.

Does a smaller result set return the desired result? You might want to look at the atlassian-jira/WEB-INF/classes/jpm.xml for these few options (or more):

  • jira.search.views.max.unlimited.group
  • jira.search.views.max.limit

Hope this helps.

Suggest an answer

Log in or Sign up to answer