Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to enable notifications for the assignee of new issues in SonarQube?

Tags:

sonarqube

We want every user to get an email about new issues they introduced in this analysis.

I found this request here, saying it should already have been possible: http://jira.sonarsource.com/browse/SONAR-2747

Is it a matter of configuring SonarQube or did they remove the feature in the meanwhile? Unfortunately this is not documented anywhere and the Jira request does not say anything about the solution itself.

[EDIT]

What I want is following scenario:

  1. A commits a new issue.
  2. B commits a new issue. SonarQube analysis is run. (nobody actively changed something; e.g. reassigned issues)
  3. A gets a mail saying that he introduced 1 new issue.
  4. B gets a mail saying that she introduced 1 new issue.
  5. A and B can (if they subscribed) get another mail saying that there are two new issues in total.

[/EDIT]

like image 862
Andreas Scharf Avatar asked Aug 10 '15 08:08

Andreas Scharf


People also ask

How do I send notifications on SonarQube?

To configure the email server, go to Administration > General Settings > Email. Check also the Server base URL property at Administration > General Settings > General to make sure that links in those notification emails will redirect to the right SonarQube server URL.

How to send SonarQube report to mail?

Log in to the SonarQube dashboard and click on the “Administration” tab. Browse to the “Configuration -> General settings -> General” menu. Under the “Email” section, fill out the required information. The settings below configure SonarQube to send emails through a Gmail account.


1 Answers

It is possible to receive a notification on new issues, but 2 conditions have to be met:

  1. The SonarQube Server has to be set up to send emails: Administration > General Settings > Email.
  2. The user must subscribe to notifications, which can be done from the user profile. Click on your avatar in the top-right.

You cannot, as an administrator, proactively subscribe your users. They must choose to be notified.

EDIT:

It is possible in 5.1 (you don't mention your version) to receive notification of any new issues. Your #5

It will be possible "soon" to receive notifications on new issues you introduced - your #3, #4

like image 149
G. Ann - SonarSource Team Avatar answered Sep 21 '22 00:09

G. Ann - SonarSource Team