Start Free
Latest | User guide | Managing issues | Editing issues

Editing issues

On this page

In SonarQube Server, you can change the status of an issue in the following cases (see also Issue life cycle):

  • If you want to fix the issue later, you can accept an issue. The issue status is then marked as Accepted.
  • If you think the analysis is mistaken, you can mark it as False positive, provided you have the corresponding permission.

In addition, you can reassign an issue, tag an issue, and comment on an issue.

Accepting an issue

You may accept an issue if you
decide to fix the issue later.
Note that SonarQube Server ignores accepted issues in the quality reports and ratings of the code.

The procedure below explains how to accept a single issue. To accept several issues at once, see Managing several issues in bulk.

To accept an issue:

1. Retrieve the issue (it’s not necessary to open the detail view). 

2. In the issue card, select the Open issue status and select Accept in the contextual menu. A Status change comment box appears.

Accept issue

3. Enter your change comment (optional) and select Resolve. The issue status is changed to Accepted.

Marking an issue as False positive

If the analysis is mistaken, you can mark an issue as False positive provided you have the Administer Issues permission on the project. Note that SonarQube Server ignores False positive issues in the quality reports and ratings of the code. 

The procedure below explains how to mark a single issue as False positive. To mark several issues at once, see Managing several issues in bulk

To mark an issue as False positive:

  1. Retrieve the issue (it’s not necessary to open the detail view). 
  2. In the issue card, select the Open issue status and select False positive in the contextual menu. A Status change comment box appears.
  3. Enter your change comment (optional) and select Resolve. The issue status is changed to False positive.

Reopening an issue

You can reopen an Accepted issue (when it’s time to fix it) or a False positive issue (if it turns out to be a true positive).

The procedure below explains how to reopen a single issue. To reopen several issues at once, see Managing several issues in bulk

To reopen one or several issues:

  1. Retrieve the issue (it’s not necessary to open the detail view).
  2. In the issue card, select the Accepted or False positive issue status and select Open in the contextual menu. The issue status is reset to Open.

Marking an issue as reviewed

To mark issues as reviewed, you may use the tagging feature: create the Reviewed tag and assign it to reviewed issues: see Tagging an issue. This way, you can filter the reviewed issues by using the Tag filter.

Assigning an issue

When possible, SonarQube Server assigns a default assignee at issue creation time (see Automatic issue assignment for more information). You can assign an unassigned issue to a user, reassign an issue to another user, or unassign an issue. 

The procedure below explains how to assign a single issue. To assign several issues at once, see Managing several issues in bulk

To assign an issue:

  1. Retrieve the issue (it’s not necessary to open the detail view). To filter the unassigned issues, select Not assigned in the Assignee filter. 
  2. In the issue card, click the assignee name or the Not assigned mention. The list of users to whom you can assign the issue appears. 
  3. In the list, select the new assignee (or select Not assigned in the list to unassign the issue).

Customizing a software quality severity level

Issues inherit software quality severity levels from the rules that raised them. If you decide that a different level is more appropriate for a given issue, you can customize it. Keep in mind that changing the severity level may impact your quality gates.

The following table shows the severity levels of software qualities for Standard Experience and Multi-Quality Rule Mode.


The table below lists the severity metrics used in Multi-Quality Rule mode. 

SeverityDefinition
BlockerBug with a high probability to impact the behavior of the application in production. 
HighEither a bug with a low probability of impacting the behavior of the application in production or an issue that represents a security flaw. 
MediumA quality flaw that can highly impact the developer's productivity. 
LowA quality flaw that can slightly impact the developer's productivity.
InfoNeither a bug nor a quality flaw, just a finding.


The table below lists the severity metrics used in Standard Experience mode. 

SeverityDefinition
BlockerBug with a high probability to impact the behavior of the application in production. For example, a memory leak, or an unclosed JDBC connection are BLOCKERs that must be fixed immediately.
CriticalEither a bug with a low probability to impact the behavior of the application in production or an issue that represents a security flaw. An empty catch block or SQL injection would be a CRITICAL issue. The code must be reviewed immediately.
MajorA quality flaw that can highly impact the developer's productivity. An uncovered piece of code, duplicated blocks, or unused parameters are examples of MAJOR issues.
Minor A quality flaw that can slightly impact the developer's productivity. For example, lines should not be too long, and "switch" statements should have at least 3 cases, are both be considered MINOR issues.
InfoNeither a bug nor a quality flaw, just a finding.

To customize the issue severity level for Software qualities impacted:

  1. Retrieve the issue you want to manage.
  2. Select an issue from the search results list:
    • For Standard Experience, click on type: Bug, Vulnerability, Code Smells.
    • For Multi-Quality Rule Mode, click on quality: Security, Reliability, Maintainability.
  3. Select the severity level you wish to apply from the drop-down list. You can also change the severity level from the issue's details page.

Tagging an issue

You can create tags and assign them to issues in order to retrieve issues more easily or to indicate a workflow step. For example, you can use a tag to mark an issue as reviewed. The figure below shows how tags are displayed in the issue item.

Issue tags

The procedure below explains how to tag a single issue. To add or remove a tag to/from several issues at once, see Managing several issues in bulk.

To manage the tags assigned to an issue:

  1. Retrieve the issue you want to manage.
  2. In the search results list or in the detail view, select in the Tags section if the issue. A dialog opens with the list of existing tags.
  3. In the dialog, you can use the search field to search for an existing tag. To create a new tag, enter the new tag in the search field: the new tag will appear in the list of tags with a plus sign in front of it .
  4. To assign or unassign a tag, select or clear the tag’s checkbox in the list.
  5. Click anywhere outside the dialog to close the dialog.
Creating new tags

Commenting on an issue

When accepting an issue or marking an issue as False positive, you can add a comment. You can also add a comment to an issue anytime. These comments are visible from the Activity tab of the issue: see Viewing the issue management history and comments

By default, comments are shared between all users (it can be disabled at the global level). 

To add a comment to an issue:

  1. Retrieve the issue and open its detail view.
  2. Open the Activity tab.
  3. Select Add a comment. The “Add a comment” dialog box opens.
  4. Enter your comment and select Comment.
  5. Your comment is added to the Activity tab.

Suppressing the issues on a given line

In most languages, you can use the //NOSONAR comment at the end of a line to suppress all issues on the line. This will suppress all issues - now and in the future - that might be raised on the line. 

Managing several issues in bulk

To manage several issues at once:

1. In the list of filtered issues, select the issues you want to manage:

    • To select one issue, select the issue check box.
    • To select all issues, select the Bulk change check box. Issues you do not want included in your action can be individually unselected.

2. Select the Bulk change button. The Change issues dialog opens.

3. In the dialog, select the action you want to perform:

    • Assign: to assign the issues to the same user.
    • Add tags: to add the same tag to the issues.
    • Remove tags: to remove the same tag from the issues.
    • Change status: to reopen the issues, accept the issues, or mark the issues as False positive.

4. Click Apply.


Was this page helpful?

© 2008-2024 SonarSource SA. All rights reserved. SONAR, SONARSOURCE, SONARQUBE, and CLEAN AS YOU CODE are trademarks of SonarSource SA.

Creative Commons License