user3317974
user3317974

Reputation: 77

Sonarqube, get a difference of issues between 2 runs

I am using

/api/issues/search API

, but the problem i have is i want to get diff of issues in 2 runs, so i was thinking about using the issue key, this API returns, but problem is when I delete the project and run again, all the api keys are new, so i wanted to know whether these issues keys are generated randomnly ? or they have some formula, and if needed to change it, where can i do so ? Can you point me to right location in code ?

Talking about this issue key, which comes in result JSON :

key: "165a4b4a-e8e2-4a54-968d-21a362dbc818"

Upvotes: 1

Views: 508

Answers (1)

The issue key is a randomly generated UUID that is by definition immutable (so you can't change it).

If you want to computing the diff between 2 runs of the same project, you have to:

  • list all issues of the project (unresolved & resolved issues)
  • check the changelog of each issue to see what its status was at analysis N and analysis N+1

Upvotes: 2

Related Questions