fix(测试跟踪): 缺陷管理导入禅道缺陷报错
--bug=1019739 --user=宋昌昌 【测试跟踪】缺陷管理-导入-模版文件-导入失败 https://www.tapd.cn/55049933/s/1300238
This commit is contained in:
parent
47c697fd5f
commit
3aa5676418
|
@ -384,15 +384,17 @@ public abstract class AbstractIssuePlatform implements IssuesPlatform {
|
||||||
|
|
||||||
protected void addCustomFields(IssuesUpdateRequest issuesRequest, MultiValueMap<String, Object> paramMap) {
|
protected void addCustomFields(IssuesUpdateRequest issuesRequest, MultiValueMap<String, Object> paramMap) {
|
||||||
List<CustomFieldItemDTO> customFields = issuesRequest.getRequestFields();
|
List<CustomFieldItemDTO> customFields = issuesRequest.getRequestFields();
|
||||||
customFields.forEach(item -> {
|
if (!CollectionUtils.isEmpty(customFields)) {
|
||||||
if (StringUtils.isNotBlank(item.getCustomData())) {
|
customFields.forEach(item -> {
|
||||||
if (item.getValue() instanceof String) {
|
if (StringUtils.isNotBlank(item.getCustomData())) {
|
||||||
paramMap.add(item.getCustomData(), ((String) item.getValue()).trim());
|
if (item.getValue() instanceof String) {
|
||||||
} else {
|
paramMap.add(item.getCustomData(), ((String) item.getValue()).trim());
|
||||||
paramMap.add(item.getCustomData(), item.getValue());
|
} else {
|
||||||
|
paramMap.add(item.getCustomData(), item.getValue());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
});
|
||||||
});
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected Object getSyncJsonParamValue(Object value) {
|
protected Object getSyncJsonParamValue(Object value) {
|
||||||
|
|
Loading…
Reference in New Issue