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