How to retrieve more than 10,000 results using api/issues/search

How to retrieve more than 10,000 results using api/issues/search with filters?

SonarQube Server : Community 9.9

I’m calling the api/issues/search endpoint with several filters (componentKeys, severities, statuses, types, etc.) and paginating the results.
However, I get this error:

Even with filters applied, the API stops at 10,000 results.

Is there any recommended way to retrieve all matching issues beyond the 10k limit

1 Like

Warm welcome @pranav007

Have you taken a look at api/projects/export_findings endpoint? I suggest you give it a try and let us know if it fulfills your need.

By the way, just out of curiosity, what is the reason for using outdated and not supported anymore version of SonarQube Server?

this API is not supported for community version 9.9

Another idea I could think of is to partition your requests by leveraging createdAt and createdBefore and write a script that makes one query after another for each month or year.

Hi @pranav007,

Welcome to the community!

Only the latest version of SonarQube Community Build is considered active, so you’ll need to update and see if the situation is still replicable before we can help you.

Your update path is:

9.9 → 24.12 → 25.12

You may find these resources helpful:

If you have questions about upgrading, feel free to open a new thread for that here.

 
Ann