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.
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
searchResult.getTotal()
I got the value I was looking for and will use it in a Do-While Loop.
Hi!
Yes, in the response you can see parameters, like limit, start and isLast, and total of number issues.
You can play it by python.
e.g.
https://github.com/atlassian-api/atlassian-python-api/blob/master/examples/jira-jql-query.py
Also, you can from your browser the result of pagination
hope it helps
Cheers,
Gonchik Tsymzhitov
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Jap, thanks for the answer.
I found a similar solution in Java though.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.