It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Java REST API: Get more than 1000 Issues

I am trying to analyze the processes in a project and want to get all the issues in it with Java.


Since the maximum amount of issues that is possible to get retrieved with a JQL is 1000 I am trying to write a loop to get them all.


Is there a way to get the number of issues in a project as an integer value? In the JIRA GUI, I can see this value, so it must be somewhere saved. If so I can use the Java REST API to retrieve it.


If not I will do it with a while-loop.

2 answers

1 accepted

Found the answer I was looking for.

In the 

final SearchResult searchResult = restClient.getSearchClient().searchJql(...);

searchResult variable there is a property named total, so with a 


I got the value I was looking for and will use it in a Do-While Loop.

2 votes



Yes, in the response you can see parameters, like limit, start and isLast, and total of number issues. 

You can play it by python.


Also, you can from your browser the result of pagination


hope it helps



Gonchik Tsymzhitov

Jap, thanks for the answer. 


I found a similar solution in Java though.

how to get more than 1000 issues through java code

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira

Demo Den Ep. 7: New Jira Cloud Reports

Learn how to use two new reports for next-gen projects in Jira Cloud:  Cumulative flow diagram and Sprint burndown chart. Ivan Teong, Product Manager, Jira Software, demos the Cumulative ...

308 views 1 3
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you