fix: 勾选第三方模板报告人选不上

--bug=1009269 --user=陈建星 [ github#8862]对接jira填完了但是报“报告人不能为空” https://www.tapd.cn/55049933/s/1091095003
This commit is contained in:
chenjianxing 2022-01-21 10:32:55 +08:00 committed by jianxing
parent 720d24e657
commit 8cda61ec9f
1 changed files with 3 additions and 4 deletions

View File

@ -183,11 +183,10 @@ public class JiraPlatform extends AbstractIssuePlatform {
isUserKey = true;
}
for (String name : createMetadata.keySet()) {
JiraCreateMetadataResponse.Field item = createMetadata.get(name);
for (String key : createMetadata.keySet()) {
JiraCreateMetadataResponse.Field item = createMetadata.get(key);
JiraCreateMetadataResponse.Schema schema = item.getSchema();
String key = item.getKey();
if (StringUtils.isBlank(key) || schema == null) {
if (schema == null) {
continue;
}
if (schema.getCustom() != null && schema.getCustom().endsWith("sprint")) {