}
protected void appendFooter(StringBuilder message, Notification notification) {
- String projectUuid = notification.getFieldValue(FIELD_PROJECT_UUID);
+ String projectKey = notification.getFieldValue(FIELD_PROJECT_KEY);
String dateString = notification.getFieldValue(FIELD_PROJECT_DATE);
- if (projectUuid != null && dateString != null) {
+ if (projectKey != null && dateString != null) {
Date date = DateUtils.parseDateTime(dateString);
- String url = String.format("%s/issues/search#projectUuids=%s|createdAt=%s",
- settings.getServerBaseURL(), encode(projectUuid), encode(DateUtils.formatDateTime(date)));
+ String url = String.format("%s/component_issues?id=%s#createdAt=%s",
+ settings.getServerBaseURL(), encode(projectKey), encode(DateUtils.formatDateTime(date)));
message
.append("See it in SonarQube: ")
.append(url)
Severity
Blocker: 0 Critical: 5 Major: 10 Minor: 3 Info: 1
-See it in SonarQube: http://nemo.sonarsource.org/issues/search#projectUuids=ABCDE|createdAt=2010-05-1
\ No newline at end of file
+See it in SonarQube: http://nemo.sonarsource.org/component_issues?id=org.apache%3Astruts#createdAt=2010-05-1
\ No newline at end of file