SonarQube 8.9LTS Api issue

  • versions used - SonarQube 8.9LTS

  • error observed -After upgrading 7.9LTS to 8.9LTS we are not getting proper API response
    for new metrics ** like [new_blocker_violations,new_code_smells,etc.]
    we are not getting the values parameters see the below image

for non-new metrics like [Code_smells,etc] we are getting the values parameters see the below image

We have used the below API

(/api/measures/search_history?metrics=functions,blocker_violations,critical_violations,major_violations,minor_violations,ncloc,complexity,violations,duplicated_lines_density,coverage,tests,code_smells,sqale_index,bugs,vulnerabilities,cognitive_complexity,new_blocker_violations,new_critical_violations,new_major_violations,new_code_smells,new_bugs,new_vulnerabilities,new_security_hotspots,new_technical_debt,new_sqale_debt_ratio,new_reliability_remediation_effort,new_coverage,security_hotspots,&component=componentName=500)

please provide response as soon as possible

Regards,
Charul Soni

Hi Charul,

In fact, we don’t store historical values for ‘new’ metrics because once they’re historical… they’re no longer new. So what you’re seeing is expected behavior.

 
HTH,
Ann