]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-7246 Link of "My New Issues" notification should go the User's Issues page 748/head
authorStas Vilchik <vilchiks@gmail.com>
Mon, 1 Feb 2016 15:40:02 +0000 (16:40 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Mon, 1 Feb 2016 15:40:02 +0000 (16:40 +0100)
server/sonar-server/src/main/java/org/sonar/server/issue/notification/MyNewIssuesEmailTemplate.java
server/sonar-server/src/test/resources/org/sonar/server/issue/notification/MyNewIssuesEmailTemplateTest/email_with_all_details.txt
server/sonar-server/src/test/resources/org/sonar/server/issue/notification/MyNewIssuesEmailTemplateTest/email_with_no_assignee_tags_components.txt

index c378be3ddb25349e2e74f20a8a0daa843e8f5c8a..366247785ed883b544473c73b33ac98881e1fdc1 100644 (file)
@@ -60,10 +60,9 @@ public class MyNewIssuesEmailTemplate extends AbstractNewIssuesEmailTemplate {
     String assignee = notification.getFieldValue(FIELD_ASSIGNEE);
     if (projectUuid != null && dateString != null && assignee != null) {
       Date date = DateUtils.parseDateTime(dateString);
-      String url = String.format("%s/issues/search#projectUuids=%s|assignees=%s|createdAt=%s",
+      String url = String.format("%s/account/issues#projectUuids=%s|createdAt=%s",
         settings.getServerBaseURL(),
         encode(projectUuid),
-        encode(assignee),
         encode(DateUtils.formatDateTime(date)));
       message.append("See it in SonarQube: ").append(url).append(NEW_LINE);
     }
index c2e53d7a50f96b2dc3d40965aae00d335c7d33c5..6a5e6fa2784cfe5a5f923426bad76ae4a9cadee8 100644 (file)
@@ -17,4 +17,4 @@ Project: Struts
         /path/to/file: 3
         /path/to/directory: 7
 
-See it in SonarQube: http://nemo.sonarsource.org/issues/search#projectUuids=ABCDE|assignees=lo.gin|createdAt=2010-05-1
\ No newline at end of file
+See it in SonarQube: http://nemo.sonarsource.org/account/issues#projectUuids=ABCDE|createdAt=2010-05-1
\ No newline at end of file
index a502a4075676c9d39b647b2e02e0f01359f7541c..479c4882f9aa05514adf17c661dedf1a218b364b 100644 (file)
@@ -5,4 +5,4 @@ Project: Struts
     Severity
         Blocker: 0    Critical: 5    Major: 10    Minor: 3    Info: 1
 
-See it in SonarQube: http://nemo.sonarsource.org/issues/search#projectUuids=ABCDE|assignees=lo.gin|createdAt=2010-05-1
\ No newline at end of file
+See it in SonarQube: http://nemo.sonarsource.org/account/issues#projectUuids=ABCDE|createdAt=2010-05-1
\ No newline at end of file