fix(测试跟踪): 缺陷管理导入禅道缺陷报错

--bug=1019739 --user=宋昌昌 【测试跟踪】缺陷管理-导入-模版文件-导入失败 https://www.tapd.cn/55049933/s/1300238
This commit is contained in:
song-cc-rock 2022-11-21 22:56:17 +08:00
parent 47c697fd5f
commit 3aa5676418
1 changed files with 10 additions and 8 deletions

View File

@ -384,15 +384,17 @@ public abstract class AbstractIssuePlatform implements IssuesPlatform {
protected void addCustomFields(IssuesUpdateRequest issuesRequest, MultiValueMap<String, Object> paramMap) {
List<CustomFieldItemDTO> customFields = issuesRequest.getRequestFields();
customFields.forEach(item -> {
if (StringUtils.isNotBlank(item.getCustomData())) {
if (item.getValue() instanceof String) {
paramMap.add(item.getCustomData(), ((String) item.getValue()).trim());
} else {
paramMap.add(item.getCustomData(), item.getValue());
if (!CollectionUtils.isEmpty(customFields)) {
customFields.forEach(item -> {
if (StringUtils.isNotBlank(item.getCustomData())) {
if (item.getValue() instanceof String) {
paramMap.add(item.getCustomData(), ((String) item.getValue()).trim());
} else {
paramMap.add(item.getCustomData(), item.getValue());
}
}
}
});
});
}
}
protected Object getSyncJsonParamValue(Object value) {