From 8cda61ec9f48a47373a6393591467d5a282cce47 Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Fri, 21 Jan 2022 10:32:55 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8B=BE=E9=80=89=E7=AC=AC=E4=B8=89?= =?UTF-8?q?=E6=96=B9=E6=A8=A1=E6=9D=BF=E6=8A=A5=E5=91=8A=E4=BA=BA=E9=80=89?= =?UTF-8?q?=E4=B8=8D=E4=B8=8A=20--bug=3D1009269=20--user=3D=E9=99=88?= =?UTF-8?q?=E5=BB=BA=E6=98=9F=20[=20github#8862]=E5=AF=B9=E6=8E=A5jira?= =?UTF-8?q?=E5=A1=AB=E5=AE=8C=E4=BA=86=E4=BD=86=E6=98=AF=E6=8A=A5=E2=80=9C?= =?UTF-8?q?=E6=8A=A5=E5=91=8A=E4=BA=BA=E4=B8=8D=E8=83=BD=E4=B8=BA=E7=A9=BA?= =?UTF-8?q?=E2=80=9D=20https://www.tapd.cn/55049933/s/1091095003?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/io/metersphere/track/issue/JiraPlatform.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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")) {