fix: jira提交空的非必填字段报错 (#4354)
Co-authored-by: chenjianxing <jianxing.chen@fit2cloud.com>
This commit is contained in:
parent
bd202111ac
commit
8924707989
|
@ -217,6 +217,7 @@ public class JiraPlatform extends AbstractIssuePlatform {
|
|||
|
||||
customFields.forEach(item -> {
|
||||
if (StringUtils.isNotBlank(item.getCustomData())) {
|
||||
if (StringUtils.isNotBlank(item.getValue())) {
|
||||
if (StringUtils.isNotBlank(item.getType()) &&
|
||||
StringUtils.equalsAny(item.getType(), "select", "multipleSelect", "checkbox", "radio", "member", "multipleMember")) {
|
||||
JSONObject param = new JSONObject();
|
||||
|
@ -226,6 +227,7 @@ public class JiraPlatform extends AbstractIssuePlatform {
|
|||
fields.put(item.getCustomData(), item.getValue());
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
JiraAddIssueResponse result = jiraClientV2.addIssue(JSONObject.toJSONString(addJiraIssueParam));
|
||||
JiraIssue issues = jiraClientV2.getIssues(result.getId());
|
||||
|
|
Loading…
Reference in New Issue