fix: 修改关联缺陷模板未生效 (#2176)
Co-authored-by: chenjianxing <jianxing.chen@fit2cloud.com>
This commit is contained in:
parent
6980c6aaa1
commit
26c3489435
|
@ -173,11 +173,11 @@ public class IssueTemplateService extends TemplateBaseService {
|
|||
|
||||
public IssueTemplateDao getTemplate(String projectId) {
|
||||
Project project = projectService.getProjectById(projectId);
|
||||
String caseTemplateId = project.getCaseTemplateId();
|
||||
String issueTemplateId = project.getIssueTemplateId();
|
||||
IssueTemplate issueTemplate = null;
|
||||
IssueTemplateDao issueTemplateDao = new IssueTemplateDao();
|
||||
if (StringUtils.isNotBlank(caseTemplateId)) {
|
||||
issueTemplate = issueTemplateMapper.selectByPrimaryKey(caseTemplateId);
|
||||
if (StringUtils.isNotBlank(issueTemplateId)) {
|
||||
issueTemplate = issueTemplateMapper.selectByPrimaryKey(issueTemplateId);
|
||||
if (issueTemplate == null) {
|
||||
issueTemplate = getDefaultTemplate(project.getWorkspaceId());
|
||||
}
|
||||
|
|
|
@ -187,8 +187,8 @@ export default {
|
|||
}
|
||||
} else {
|
||||
this.form = {
|
||||
title: '',
|
||||
description: ''
|
||||
title: this.issueTemplate.title,
|
||||
description: this.issueTemplate.content
|
||||
}
|
||||
this.url = 'issues/add';
|
||||
}
|
||||
|
|
|
@ -25,6 +25,7 @@ export const CASE_TYPE_OPTION = [
|
|||
export const ISSUE_PLATFORM_OPTION = [
|
||||
{value: 'metersphere',text: 'Metersphere'},
|
||||
{value: 'jira',text: 'JIRA'},
|
||||
{value: 'Tapd',text: 'Tapd'},
|
||||
{value: 'zentao',text: '禅道'},
|
||||
];
|
||||
|
||||
|
|
Loading…
Reference in New Issue