Fetching issues from JQL returns only 50 although maxResults is set to 1000

muhammad_mansoor September 10, 2018

{"jql": "id = 207482 or id = 207483 or ........................... ", "maxResults":1000}

2 answers

0 votes
Gonchik Tsymzhitov
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 16, 2018

Hi! 

 

If you on Server edition you can do it like this:

jira-home/jira-config.properties

Add :
jira.search.views.max.limit = 1000
jira.search.views.default.max = 1000

Don't forget to restart JIRA

 

Anyway, I recommend to use paginations like this:

https://github.com/AstroMatt/atlassian-python-api/blob/master/atlassian/jira.py#L31

 

hope it helps

 

 

Cheers,

Gonchik Tsymzhitov

0 votes
Mohamed Benziane
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 10, 2018

Hi  Muhammad

Can you try maxResults=1000 instead of maxResults:1000

 

Regards

Hope this helps

muhammad_mansoor September 10, 2018

This is JSON string. Using = instead of : causes exception.

Mohamed Benziane
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 10, 2018

Are you on cloud ? Atlassian put a limit on the maxresults see this page 

https://community.atlassian.com/t5/Jira-questions/how-to-alter-the-number-of-maxResults-on-a-search-jql-REST-API/qaq-p/684442

If you want you add a startAt attribut :

{"jql": "project = PROJ ORDER BY key ASC","startAt":0,"maxResults":0,"fields":["
id"
,"key","summary","status.id","issuetype

And send an another query with "startAt":51 

Suggest an answer

Log in or Sign up to answer