SonarQube issue tracking behavior after code line changes

Hello!

We use SonarQube Enterprise 10.6 to analyze our code and we’re working on retrieving a list of issues through the API. Each issue in SonarQube has its own key (similar to a GUID), which we want to use as a reference to a specific issue, and here’s our question: If we have an identified issue in a given file, and we make changes to a different line in that file, and as a result, the issue that was previously detected by SonarQube still remains in the code within that file (just with a change in the line where it was identified), will this be recognized as a new issue, or will the existing issue simply be updated with information about its current location in the file (code line)?

Thank you very much for help!

Hi,

Welcome to the community!

Based on your scenario, the issue will remain. Check the flow here in the docs.

 
HTH,
Ann