How to generate projects analysis report in SonarQube using Web API in html format?

Hello,

I am getting my projects’ reports in JSON format in SonarQube using Web API as below.
http://mysonarserver/api/issues/search?pageSize=100&componentKeys=reactkyc&metricKeys=violations,ncloc,line

But I need the same in HTML format as I need to send it to stakeholders by mail.
Please advise.

Hi,

There’s a project-level PDF report available starting in Enterprise Edition($$). Other than that, you’ll have to craft the report yourself.

 
HTH,
Ann

Ok. Thank you.

Hello @jayakumari , maybe this would correspond to your need : GitHub - cnescatlab/sonar-cnes-report: Generates analysis reports from SonarQube web API.

Officially, it’s only compatible with LTS versions but it can works with newest versions but can cause some translation bugs on your sonar instance (on our company, we decided to use two sonarqubes due to this : one for a general usage and one to generate reports)