Reputation: 55
I have realized SonarQube shows issue status as fixed when the codebase which resulted in the analysis is no longer available.
Is there any possibility to remove these fixed issues from SonarQube UI as when I am doing an API call to fetch the issues, these fixed issues are coming along with open one's and the number of issues is crossing 10k limit and am not able to fetch the relevant open issues through my API call.
Upvotes: 0
Views: 1835
Reputation: 9116
The closed issues are automatically removed after X days (by default 30). The configuration option is in the Administration → General → Database Cleaner → Delete closed issues after
. Read more: Housekeeping.
If you use API to fetch a list of the issues, you should filter the results. For example the api/issues/search
service provides the statuses
parameter which takes a comma-separated list of statuses. Possible values:
To get a list of not closed issues you have to use:
statuses=OPEN,CONFIRMED,REOPENED,RESOLVED,TO_REVIEW,IN_REVIEW
Upvotes: 1