From f9f4c68eac0aab0f41fc704b828d7d623a3acf37 Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Thu, 24 Nov 2022 12:19:02 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E5=88=9B=E5=BB=BAJira=E7=BC=BA=E9=99=B7=E5=85=B3=E8=81=94?= =?UTF-8?q?=E9=99=84=E4=BB=B6=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/io/metersphere/service/IssuesService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test-track/backend/src/main/java/io/metersphere/service/IssuesService.java b/test-track/backend/src/main/java/io/metersphere/service/IssuesService.java index 2328a11659..31d7952247 100644 --- a/test-track/backend/src/main/java/io/metersphere/service/IssuesService.java +++ b/test-track/backend/src/main/java/io/metersphere/service/IssuesService.java @@ -167,7 +167,7 @@ public class IssuesService { insertIssues(issues); issuesRequest.setId(issues.getId()); - + issues.setPlatform(project.getPlatform()); // 用例与第三方缺陷平台中的缺陷关联 handleTestCaseIssues(issuesRequest); @@ -261,6 +261,7 @@ public class IssuesService { // 下载文件管理文件, 同步到第三方平台 File refFile = attachmentService.downloadMetadataFile(filemetaId, fileMetadata.getName()); if (PlatformPluginService.isPluginPlatform(platform)) { + issuesRequest.setPlatform(platform); attachmentService.syncIssuesAttachment(issuesRequest, refFile, AttachmentSyncType.UPLOAD); } else { IssuesRequest addIssueRequest = new IssuesRequest();