0

I am trying to use the SonarQube web service API api/issues/search to extract the information of all issues. But I see that the maximum number of results from the API is only 500 with filters like pageSize.

Is there a different way of using this API so that I can get all the issues in the resultlist?

slartidan
  • 20,403
  • 15
  • 83
  • 131
CSharped
  • 1,247
  • 4
  • 20
  • 49

1 Answers1

1

The web service results are paginated. Use ps (page size) and p to step through the result set.

That said, there's a hard limit of 10k.

G. Ann - SonarSource Team
  • 22,346
  • 4
  • 40
  • 76
  • Thanks, that was helpful. I did use the ps and p parameters to step through and recursively get all the issues. What's with the 10k limit? Are you saying if i have 12000 results i cant fetch them all using the API? IS there a way i can also get the SQALE rating using the API? – CSharped Apr 18 '17 at 13:12
  • Rating of the project or of individual files? Either way though, that's really a separate question, isn't it? :) – G. Ann - SonarSource Team Apr 18 '17 at 13:16
  • Agreed :) its a separate question. I was looking at getting the SQALE rating for the project – CSharped Apr 18 '17 at 13:19