Question: Discrepancy in Technical Debt Display Between SonarQube API and UI

I’m currently analyzing technical debt in SonarQube and encountered a discrepancy between the REST API response and the UI display.

:bar_chart: Scenario:
I calculated technical debt for each file in a project.
The total technical debt reported by the API (sqale_index) is 197 minutes.
When I convert this manually:
197 minutes ÷ 60 = 3.28 hours
However, in the SonarQube UI, the same value is displayed as 3.17 hours.

API - /api/measures/component?component=ProjectQA&metricKeys=sqale_index

API response - {
“component”: {
“key”: “ProjectQA”,
“name”: “ProjectQA”,
“qualifier”: “TRK”,
“measures”: [
{
“metric”: “sqale_index”,
“value”: “197”,
“bestValue”: false
}
]
}
}

Here if we calculate each files debt time it will come around 197 minutes which is -3.28 Hours

Hey there!

What version of SonarQube are you using?