refactor: Tapd模板添加Tapd字段勾选项

This commit is contained in:
chenjianxing 2021-05-21 13:12:39 +08:00 committed by jianxing
parent 4e3b2166d0
commit 67828c2a05
2 changed files with 2 additions and 1 deletions

View File

@ -256,6 +256,7 @@ public class JiraPlatform extends AbstractIssuePlatform {
// if (isCustomMap.get(item.getCustomData())) {
// fields.put(item.getCustomData(), item.getValue());
// } else {
// Jira文档说明中自定义字段和系统字段参数格式有区别实测是一样的
JSONObject param = new JSONObject();
param.put("id", item.getValue());
fields.put(item.getCustomData(), param);

View File

@ -177,7 +177,7 @@ public class TapdPlatform extends AbstractIssuePlatform {
paramMap.add("current_owner", usersStr);
customFields.forEach(item -> {
if (StringUtils.isNotBlank(item.getCustomData())) {
if (StringUtils.isNotBlank(item.getCustomData()) && item.getIsThirdPart() != null && item.getIsThirdPart()) {
paramMap.add(item.getCustomData(), item.getValue());
}
});