mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-11-29 18:48:13 +08:00
fix(缺陷管理): 第三方的处理人获取有误
--bug=1049288 --user=宋昌昌 【缺陷管理】缺陷-集成禅道-自定义禅道模板-创建缺陷成功后查看处理人为空 https://www.tapd.cn/55049933/s/1614574
This commit is contained in:
parent
18dce26d2f
commit
56f7bd6976
@ -892,7 +892,17 @@ public class BugService {
|
||||
attachTemplateStatusField(templateDTO, projectId, fromStatusId, platformBugKey, showLocal);
|
||||
|
||||
// 内置字段(处理人字段)
|
||||
if (!StringUtils.equals(platformName, BugPlatform.LOCAL.getName()) && BooleanUtils.isFalse(showLocal)) {
|
||||
if (StringUtils.equals(platformName, BugPlatform.LOCAL.getName()) || BooleanUtils.isTrue(showLocal)) {
|
||||
// Local(处理人)
|
||||
TemplateCustomFieldDTO handleUserField = new TemplateCustomFieldDTO();
|
||||
handleUserField.setFieldId(BugTemplateCustomField.HANDLE_USER.getId());
|
||||
handleUserField.setFieldName(BugTemplateCustomField.HANDLE_USER.getName());
|
||||
handleUserField.setFieldKey(BugTemplateCustomField.HANDLE_USER.getId());
|
||||
handleUserField.setType(CustomFieldType.SELECT.name());
|
||||
handleUserField.setOptions(getMemberOption(projectId));
|
||||
handleUserField.setRequired(true);
|
||||
templateDTO.getCustomFields().addFirst(handleUserField);
|
||||
} else {
|
||||
// 获取插件中自定义的注入字段(处理人)
|
||||
ServiceIntegration serviceIntegration = projectApplicationService.getPlatformServiceIntegrationWithSyncOrDemand(projectId, true);
|
||||
// 状态选项获取时, 获取平台校验了服务集成配置, 所以此处不需要再次校验
|
||||
@ -921,16 +931,6 @@ public class BugService {
|
||||
}
|
||||
templateDTO.getCustomFields().addFirst(templateCustomFieldDTO);
|
||||
}
|
||||
} else {
|
||||
// Local(处理人)
|
||||
TemplateCustomFieldDTO handleUserField = new TemplateCustomFieldDTO();
|
||||
handleUserField.setFieldId(BugTemplateCustomField.HANDLE_USER.getId());
|
||||
handleUserField.setFieldName(BugTemplateCustomField.HANDLE_USER.getName());
|
||||
handleUserField.setFieldKey(BugTemplateCustomField.HANDLE_USER.getId());
|
||||
handleUserField.setType(CustomFieldType.SELECT.name());
|
||||
handleUserField.setOptions(getMemberOption(projectId));
|
||||
handleUserField.setRequired(true);
|
||||
templateDTO.getCustomFields().addFirst(handleUserField);
|
||||
}
|
||||
|
||||
// 成员类型的自定义字段, 选项值为项目下成员用户
|
||||
|
Loading…
Reference in New Issue
Block a user