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 5e8d590b92..853237ba08 100644 --- a/backend/src/main/java/io/metersphere/track/issue/JiraPlatform.java +++ b/backend/src/main/java/io/metersphere/track/issue/JiraPlatform.java @@ -360,6 +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")); parseCustomFiled(issuesRequest, fields); } setSpecialParam(fields); @@ -367,6 +369,14 @@ public class JiraPlatform extends AbstractIssuePlatform { return addJiraIssueParam; } + private CustomFieldItemDTO getRichTextCustomField(String name) { + CustomFieldItemDTO customField = new CustomFieldItemDTO(); + customField.setId(name); + customField.setType(CustomFieldType.RICH_TEXT.getValue()); + customField.setCustomData(name); + return customField; + } + private String dealWithImage(String description) { String regex = "(\\!\\[.*?\\]\\((.*?)\\))"; Matcher matcher = Pattern.compile(regex).matcher(description);