From 7408cb44625a69f32244bd244dd4091e39f45ca1 Mon Sep 17 00:00:00 2001 From: CaptainB Date: Tue, 25 Oct 2022 15:10:37 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B6=88=E6=81=AF=E9=80=9A=E7=9F=A5):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=AF=84=E8=AE=BA=E7=BC=BA=E9=99=B7=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E9=80=9A=E7=9F=A5=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1018818 --user=刘瑞斌 【项目设置】缺陷消息通知:评论事件的消息都收不到通知(站内信、邮件、机器人) https://www.tapd.cn/55049933/s/1276407 --- .../java/io/metersphere/controller/IssueCommentController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test-track/backend/src/main/java/io/metersphere/controller/IssueCommentController.java b/test-track/backend/src/main/java/io/metersphere/controller/IssueCommentController.java index 3c343adacb..d98e9b77eb 100644 --- a/test-track/backend/src/main/java/io/metersphere/controller/IssueCommentController.java +++ b/test-track/backend/src/main/java/io/metersphere/controller/IssueCommentController.java @@ -29,7 +29,7 @@ public class IssueCommentController { @PostMapping("/save") @RequiresPermissions(PermissionConstants.PROJECT_TRACK_REVIEW_READ_COMMENT) - @SendNotice(taskType = NoticeConstants.TaskType.DEFECT_TASK, target = "#targetClass.get(#request.issuesId)", targetClass = IssuesService.class, + @SendNotice(taskType = NoticeConstants.TaskType.DEFECT_TASK, target = "#targetClass.getIssue(#request.issuesId)", targetClass = IssuesService.class, event = NoticeConstants.Event.COMMENT, subject = "缺陷") public IssueComment saveComment(@RequestBody IssuesRelevanceRequest request) { request.setId(UUID.randomUUID().toString());