I am trying to fetch a list of all issues in my name and having severity as MAJOR, CRITICAL.
I tried API and it is not accepting two parameters and complain that not supported. Please help how to read list of issues?
I am using reference form below site http://docs.sonarqube.org/pages/viewpage.action?pageId=2392181#WebService/api/issues-GetaListofIssues
C:\cURL\bin>curl.exe -X GET -v -u admin:admin http://localhost.com:9000/ap
i/issues/search?severities="MAJOR,CRITICAL"&assignees="nits"&pageSize="-1"
SONARQUBE 4.4
You have a problem with execution of CURL (not with SonarQube API). & is a special character in shell. You should use quotes (curl params "url"):
curl -X GET -v -u admin:admin "http://localhost.com:9000/api/issues/search?severities=MAJOR,CRITICAL&assignees=nits&pageSize=-1"
or escape special characters (\&):
curl -X GET -v -u admin:admin http://localhost.com:9000/api/issues/search?severities=MAJOR,CRITICAL\&assignees=nits\&pageSize=-1
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With