Assignment of an issue in SonarCloud

  • ALM used (Azure DevOps)
  • CI system used (Azure DevOps)
  • Languages of the repository - Csharp
  • Error observed
    New issue is getting assigned to a comitter before last committer
  • Steps to reproduce
  1. User 1 : Creates a branch (might have old code smells)
  2. User 2 : makes a mistake and commits with new codesmell, say CS1
  3. SonarCloud analysis is done, identifies CS1 and old code smells say CS44, CS45
    4. Assigns CS1 to User 2 and CS44 & CS45 to User 1
  4. Node CS44 and CS45 were introduced by some other user in past, say User 0

Is #4 expected behaviour? Should it assign issue to User 0 instead of User 1?

Hello,

You can find more detailed documentation on that topic here: https://sonarcloud.io/documentation/user-guide/issues/#automatic-issue-assignment . This behavior is expected when User 1 is the last committer on the issue line of CS44 and CS45.

Best,
Martin