--- app/models/NotificationEvent.java
+++ app/models/NotificationEvent.java
... | ... | @@ -957,6 +957,7 @@ |
957 | 957 |
} |
958 | 958 |
|
959 | 959 |
public static NotificationEvent afterMilestoneChanged(Long oldMilestoneId, Issue issue) { |
960 |
+ issue.milestone.refresh(); |
|
960 | 961 |
webhookRequest(ISSUE_MILESTONE_CHANGED, issue, false); |
961 | 962 |
|
962 | 963 |
NotificationEvent notiEvent = createFromCurrentUser(issue); |
--- app/models/Webhook.java
+++ app/models/Webhook.java
... | ... | @@ -329,7 +329,7 @@ |
329 | 329 |
} |
330 | 330 |
|
331 | 331 |
private String buildJsonWithIssueEventDetails(Issue eventIssue, ArrayNode detailFields, ArrayNode attachments, String requestMessage) { |
332 |
- detailFields.add(buildTitleValueJSON(Messages.get(Lang.defaultLang(), "notification.type.milestone.changed"), eventIssue.milestoneId().toString(), true)); |
|
332 |
+ detailFields.add(buildTitleValueJSON(Messages.get(Lang.defaultLang(), "notification.type.milestone.changed"), eventIssue.milestone.title, true)); |
|
333 | 333 |
detailFields.add(buildTitleValueJSON(Messages.get(Lang.defaultLang(), ""), eventIssue.assigneeName(), true)); |
334 | 334 |
detailFields.add(buildTitleValueJSON(Messages.get(Lang.defaultLang(), "issue.state"), eventIssue.state.toString(), true)); |
335 | 335 |
attachments.add(buildAttachmentJSON(eventIssue.body, detailFields)); |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?