I saw in the sonar time machine that it was possible to see for each analysis the number of blocker and critical issues, but I didn't find where these metrics are stocked and how to retrieve them one by one externally with a Java program.
Asked
Active
Viewed 1,624 times
1 Answers
1
You should use the web service api/timemachine/index. It is documented within the application, for example at https://sonarqube.com/web_api/api/timemachine/index
The metrics for having numbers of issues are violations
(total number, whatever the severity), blocker_violations
, critical_violations
, major_violations
, minor_violations
and info_violations
.

Simon Brandhof
- 5,137
- 1
- 21
- 28
-
Thank you, it works, but is there any way to retrieve the details for each issue in each analysis? For example, with an id or something like this. – Kamal ALLALI Oct 17 '16 at 09:12
-
No it's not possible. What's your use-case ? – Simon Brandhof Oct 17 '16 at 10:01
-
I want to know how many issues have been solved and this is why I need the time machine. I want the detail because the time machine doesn't show which issue have been solved so, for example, if someone solves an issue, but at the same time create a new, the number of issues doesn't show it. – Kamal ALLALI Oct 17 '16 at 10:52