Hi
Problem:
- I’am having many sonar projects in self hosted sonar server.
- I could able to get what setting applied for new code period using API (
api/new_code_periods/show?project=name
). - But I want to get exact start and end date of this calculated new code metrics. Is it possible ?
Example scenario
Say new code setting is like below
{
“projectKey”: “projectxxx”,
“type”: “NUMBER_OF_DAYS”,
“value”: “180”,
“inherited”: true
}
- some projects, started recently(less than new code period already set)
- some are started long ago
For case(1), I could not get the metrics for whole 180 days. In that situation, I will be better to provide new code period start date when hitting some API’s- Based on the date, I will decide/choose the way to proceed further.
- Based on the date, I will decide/choose the way to proceed further.