Search_issue() python API is returning limited number

Fatma Kanoun October 4, 2017

Hello,

I was trying to get all issues through jira python API. The total number of issues is 330. I changed the max Results to get all issues but it only return 100 (number of issues per page).

Knowing that i can't change my jira preferences to get more then 100 issues. I want to find out a way to get the 330 issues by python API directly.

Thanks.

2 answers

5 votes
Jay Wang July 16, 2021

issues_in_proj = data.search_issues(jql_str = jqlmaxResults=0)

 

maxResults=0 give me more than 100 results. 

Anna Nikolova (CEIC - BG) July 19, 2022

Yes it works! Thank you so much!

0 votes
Warren
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.
October 4, 2017

Hi Fatma

Read this and look at the JRACLOUD link within it as well. We used to be able to get more than 100 results, but not any more.

But ... there is a way to cycle through the additional results using the startAt parameter. So you would need to recursively issue your call, the first time with startAt = 0, then startAt = 100 etc.

Suggest an answer

Log in or Sign up to answer