fix(测试跟踪): 获取jira模板时优先使用个人信息中的配置
This commit is contained in:
parent
b7144d07b8
commit
ac27789576
|
@ -430,6 +430,7 @@ public class JiraPlatform extends AbstractIssuePlatform {
|
|||
}
|
||||
|
||||
public IssueTemplateDao getThirdPartTemplate() {
|
||||
setUserConfig();
|
||||
Set<String> ignoreSet = new HashSet() {{
|
||||
add("timetracking");
|
||||
add("attachment");
|
||||
|
|
|
@ -3,6 +3,7 @@ package io.metersphere.track.service;
|
|||
import io.metersphere.base.domain.Project;
|
||||
import io.metersphere.base.mapper.ProjectMapper;
|
||||
import io.metersphere.commons.constants.IssuesManagePlatform;
|
||||
import io.metersphere.commons.utils.LogUtil;
|
||||
import io.metersphere.track.dto.DemandDTO;
|
||||
import io.metersphere.track.issue.AbstractIssuePlatform;
|
||||
import io.metersphere.track.issue.IssueFactory;
|
||||
|
@ -67,7 +68,12 @@ public class DemandService {
|
|||
issueRequest.setProjectId(projectId);
|
||||
List<AbstractIssuePlatform> platformList = IssueFactory.createPlatforms(platforms, issueRequest);
|
||||
platformList.forEach(platform -> {
|
||||
List<DemandDTO> demand = platform.getDemandList(projectId);
|
||||
List<DemandDTO> demand = new ArrayList<>();
|
||||
try {
|
||||
demand = platform.getDemandList(projectId);
|
||||
} catch (Exception e) {
|
||||
LogUtil.error(e);
|
||||
}
|
||||
list.addAll(demand);
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue