From 9b9f69468ec8af4b69dc5c1dac9050af4ebc06d1 Mon Sep 17 00:00:00 2001 From: song-cc-rock Date: Thu, 27 Oct 2022 18:07:25 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20Ji?= =?UTF-8?q?ra=E5=A4=9A=E9=80=89=E7=94=A8=E6=88=B7=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E5=90=8C=E6=AD=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1018604 --user=宋昌昌 【测试跟踪】项目集成jira-缺陷管理-同步缺陷-报告人未同步成功 https://www.tapd.cn/55049933/s/1281039 --- .../io/metersphere/service/issue/platform/JiraPlatform.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test-track/backend/src/main/java/io/metersphere/service/issue/platform/JiraPlatform.java b/test-track/backend/src/main/java/io/metersphere/service/issue/platform/JiraPlatform.java index 5503ac5500..72217cd3ec 100644 --- a/test-track/backend/src/main/java/io/metersphere/service/issue/platform/JiraPlatform.java +++ b/test-track/backend/src/main/java/io/metersphere/service/issue/platform/JiraPlatform.java @@ -56,6 +56,10 @@ public class JiraPlatform extends AbstractIssuePlatform { public JiraClientV2 getJiraClientV2() { return jiraClientV2; } + + public void setThirdPartTemplate() { + this.isThirdPartTemplate = true; + } @Override public List getIssue(IssuesRequest issuesRequest) { @@ -799,7 +803,7 @@ public class JiraPlatform extends AbstractIssuePlatform { if (defaultValue instanceof String) { msDefaultValue = defaultValue; } else { - msDefaultValue = Instant.ofEpochMilli((Long) defaultValue).atZone(ZoneId.systemDefault()).toLocalDate(); + msDefaultValue = Instant.ofEpochMilli((Long) defaultValue).atZone(ZoneId.systemDefault()).toLocalDate().toString(); } } else if (customFieldDao.getType().equals(CustomFieldType.DATETIME.getValue())) { if (defaultValue instanceof String) {