fix(测试跟踪): 缺陷管理新增同步到Jira必填值校验问题

--bug=1016093 --user=宋昌昌 【测试跟踪】提交缺陷到jira,勾选“使用Jira缺陷模版”,提交缺陷失败 https://www.tapd.cn/55049933/s/1231870
This commit is contained in:
song-cc-rock 2022-08-23 20:19:24 +08:00 committed by jianxing
parent ae9ec42f01
commit 4b63d4781f
1 changed files with 2 additions and 1 deletions

View File

@ -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();