refactor: Tapd模板添加Tapd字段勾选项
This commit is contained in:
parent
4e3b2166d0
commit
67828c2a05
|
@ -256,6 +256,7 @@ public class JiraPlatform extends AbstractIssuePlatform {
|
||||||
// if (isCustomMap.get(item.getCustomData())) {
|
// if (isCustomMap.get(item.getCustomData())) {
|
||||||
// fields.put(item.getCustomData(), item.getValue());
|
// fields.put(item.getCustomData(), item.getValue());
|
||||||
// } else {
|
// } else {
|
||||||
|
// Jira文档说明中自定义字段和系统字段参数格式有区别,实测是一样的
|
||||||
JSONObject param = new JSONObject();
|
JSONObject param = new JSONObject();
|
||||||
param.put("id", item.getValue());
|
param.put("id", item.getValue());
|
||||||
fields.put(item.getCustomData(), param);
|
fields.put(item.getCustomData(), param);
|
||||||
|
|
|
@ -177,7 +177,7 @@ public class TapdPlatform extends AbstractIssuePlatform {
|
||||||
paramMap.add("current_owner", usersStr);
|
paramMap.add("current_owner", usersStr);
|
||||||
|
|
||||||
customFields.forEach(item -> {
|
customFields.forEach(item -> {
|
||||||
if (StringUtils.isNotBlank(item.getCustomData())) {
|
if (StringUtils.isNotBlank(item.getCustomData()) && item.getIsThirdPart() != null && item.getIsThirdPart()) {
|
||||||
paramMap.add(item.getCustomData(), item.getValue());
|
paramMap.add(item.getCustomData(), item.getValue());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue