fix(测试跟踪): 创建Jira缺陷关联附件报错

This commit is contained in:
chenjianxing 2022-11-24 12:19:02 +08:00 committed by jianxing
parent eaa1f9dd26
commit f9f4c68eac
1 changed files with 2 additions and 1 deletions

View File

@ -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();