diff --git a/backend/src/main/java/io/metersphere/track/issue/JiraPlatform.java b/backend/src/main/java/io/metersphere/track/issue/JiraPlatform.java index 7aca929986..7b3c98b5a0 100644 --- a/backend/src/main/java/io/metersphere/track/issue/JiraPlatform.java +++ b/backend/src/main/java/io/metersphere/track/issue/JiraPlatform.java @@ -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")) {