{iframe:src=http://update.sonarsource.org/plugins/issueassign.html|width=700|height=250|frameborder=0}
Your browser does not support iframes.
{iframe}

Description / Features

This plugin will automatically assign new issues raised in the current analysis to the SCM author responsible
for the violation. The out-of-the-box SonarQube notification framework will then automatically notify the assignee,
if configured.

If the author is not registered in SonarQube the issue will be assigned to a configurable default assignee.

The plugin can handle scenarios where the violator is not the original author of the code in which
the issue is raised, but rather the last committer. For example, in metrics where the length of a
method has exceeded the maximum threshold. In this case the issue will be assigned to the last committer.

Installation

The plugin is still under vote, so you need to build it yourself:

  1. Consult the matrix below to determine the version you require.
  2. Clone the appropriate branch from Github.  
  3. Execute 'mvn clean install' in the project's root folder.
  4. Look for the resulting jar file in the project's 'target' directory.
  5. Copy the plugin to your SonarQube server's plugin directory.  This will be something like <SONAR_INSTALL_DIR>/extensions/plugins.
  6. Restart the SonarQube server.

Requirements

Plugin1.01.11.2
SonarQube 4.1(tick)(error)(error)
SonarQube 4.2(error)(tick)(error)
SonarQube 4.3(error)(error)(tick)

 

Usage

Analysis

Configure the plugin as described below and run the SonarQube analysis as normal.

NOTE: If you wish to avoid mass issue assignments on first-time analysis or when rule changes are introduced, disable the plugin during the initial analysis and re-enable it for subsequent analyses.

Git Users

For Git users, the SCM author is an email address. The plugin can map this email address to a Sonar user,
provided the email address is the same for the SCM and SonarQube accounts.

Configuration

Default Assignee

Configure this value to be a valid SonarQube login of a user to whom issues will be assigned if the plugin cannot determine the SonarQube user who is responsible for an issue.  An example of this would be an SCM author who has left your organization and no longer has an account in SonarQube.

Enabled

The plugin is disabled by default.  It can be enabled or disabled in either the global or project settings.

Override Assignee

Configure this value to be a valid SonarQube login of a user to whom all issues will be assigned regardless of the SCM author.  Useful to avoid issues being assigned and notifications being sent out to unsuspecting SonarQube users in testing scenarios.

Always Assign to Author

Set to true if you want to always assign to the defect author, set to false if you want to assign to the last committer on the file if they are different from the author.

Defect Introduced Date

Any defects introduced or updated after this date are auto assigned, and any defects before will be ignored. Use the format dd/MM/yyyy.

SCM Author email start and end characters

Use to identify an email address embedded into an SCM username. For example, a Git username such as: GitUser<gituser@domain.com>.