fix: 勾选jira模板创建缺陷空指针
This commit is contained in:
parent
f3ef2727be
commit
3bf6a11aec
|
@ -186,9 +186,12 @@ public class JiraPlatform extends AbstractIssuePlatform {
|
|||
JiraCreateMetadataResponse.Field item = createMetadata.get(name);
|
||||
JiraCreateMetadataResponse.Schema schema = item.getSchema();
|
||||
String key = item.getKey();
|
||||
if (StringUtils.isBlank(key)) {
|
||||
continue;
|
||||
}
|
||||
if (schema != null && schema.getCustom() != null && schema.getCustom().endsWith("sprint")) {
|
||||
JSONObject field = fields.getJSONObject(key);
|
||||
try {
|
||||
JSONObject field = fields.getJSONObject(key);
|
||||
// sprint 传参数比较特殊,需要要传数值
|
||||
fields.put(key, field.getInteger("id"));
|
||||
} catch (Exception e) {}
|
||||
|
|
Loading…
Reference in New Issue