fix(测试跟踪): Jira没勾选第三方模板,提交缺陷图片不显示
--bug=1017001 --user=陈建星 【测试跟踪】缺陷管理-提交缺陷到jira平台-图片不显示 https://www.tapd.cn/55049933/s/1247880
This commit is contained in:
parent
1baa05bee4
commit
201cabd0d3
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue