New Code definition in SonarQube Community v25

Hello everyone,

I’m currently using SonarQube Community Edition v25. Is there a way to set the New Code period for a project based on a specific analysis?

Thank you!

Hi @dandreabenjamin,

Welcome to the community :tada:!

I think this option was removed from the UI, but is still accessible through the Web API. You can use the web API call api/new_code_periods/set to set a project’s New Code Period type to Specific Analysis

You can find more details about WebApis here - SonarQube Community Build Web API | Documentation

Thanks,
Aravind

1 Like