From 0d7b97cbc1ca45de2ea209bce498870409ae69eb Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Thu, 15 Sep 2022 18:56:53 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20Ji?= =?UTF-8?q?ra=E6=B2=A1=E5=8B=BE=E9=80=89=E7=AC=AC=E4=B8=89=E6=96=B9?= =?UTF-8?q?=E6=A8=A1=E6=9D=BF=EF=BC=8C=E6=8F=90=E4=BA=A4=E7=BC=BA=E9=99=B7?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E4=B8=8D=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1017001 --user=陈建星 【测试跟踪】缺陷管理-提交缺陷到jira平台-图片不显示 https://www.tapd.cn/55049933/s/1250464 --- .../main/java/io/metersphere/track/issue/JiraPlatform.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/backend/src/main/java/io/metersphere/track/issue/JiraPlatform.java b/backend/src/main/java/io/metersphere/track/issue/JiraPlatform.java index d6b2d21ff5..442cea1ef7 100644 --- a/backend/src/main/java/io/metersphere/track/issue/JiraPlatform.java +++ b/backend/src/main/java/io/metersphere/track/issue/JiraPlatform.java @@ -360,8 +360,8 @@ public class JiraPlatform extends AbstractIssuePlatform { } else { fields.put("summary", issuesRequest.getTitle()); fields.put("description", desc); - issuesRequest.getRequestFields().add(getRichTextCustomField("description")); - issuesRequest.getRequestFields().add(getRichTextCustomField("summary")); + // 添加后,解析图片会用到 + issuesRequest.getRequestFields().add(getRichTextCustomField("description", desc)); parseCustomFiled(issuesRequest, fields); } setSpecialParam(fields); @@ -369,11 +369,12 @@ public class JiraPlatform extends AbstractIssuePlatform { return addJiraIssueParam; } - private CustomFieldItemDTO getRichTextCustomField(String name) { + private CustomFieldItemDTO getRichTextCustomField(String name, String value) { CustomFieldItemDTO customField = new CustomFieldItemDTO(); customField.setId(name); customField.setType(CustomFieldType.RICH_TEXT.getValue()); customField.setCustomData(name); + customField.setValue(value); return customField; }