From 7979b129dc8736f98a9bc734fe4eddfcb149b4b4 Mon Sep 17 00:00:00 2001 From: song-cc-rock Date: Tue, 23 Aug 2022 20:19:24 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E7=BC=BA=E9=99=B7=E7=AE=A1=E7=90=86=E6=96=B0=E5=A2=9E=E5=90=8C?= =?UTF-8?q?=E6=AD=A5=E5=88=B0Jira=E5=BF=85=E5=A1=AB=E5=80=BC=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1016093 --user=宋昌昌 【测试跟踪】提交缺陷到jira,勾选“使用Jira缺陷模版”,提交缺陷失败 https://www.tapd.cn/55049933/s/1231870 --- .../src/main/java/io/metersphere/track/issue/JiraPlatform.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 f4c125c6c1..5e8d590b92 100644 --- a/backend/src/main/java/io/metersphere/track/issue/JiraPlatform.java +++ b/backend/src/main/java/io/metersphere/track/issue/JiraPlatform.java @@ -24,6 +24,7 @@ import io.metersphere.track.request.testcase.IssuesUpdateRequest; import io.metersphere.track.service.IssuesService; import org.apache.commons.collections.CollectionUtils; import org.apache.commons.lang.StringEscapeUtils; +import org.apache.commons.lang3.ObjectUtils; import org.apache.commons.lang3.StringUtils; import org.springframework.http.ResponseEntity; import org.springframework.web.client.HttpClientErrorException; @@ -408,7 +409,7 @@ public class JiraPlatform extends AbstractIssuePlatform { customFields.forEach(item -> { String fieldName = item.getCustomData(); if (StringUtils.isNotBlank(fieldName)) { - if (item.getValue() != null) { + if (ObjectUtils.isNotEmpty(item.getValue())) { if (StringUtils.isNotBlank(item.getType())) { if (StringUtils.equalsAny(item.getType(), "select", "radio", "member")) { JSONObject param = new JSONObject();