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) {
|
public IssueTemplateDao getTemplate(String projectId) {
|
||||||
Project project = projectService.getProjectById(projectId);
|
Project project = projectService.getProjectById(projectId);
|
||||||
String caseTemplateId = project.getCaseTemplateId();
|
String issueTemplateId = project.getIssueTemplateId();
|
||||||
IssueTemplate issueTemplate = null;
|
IssueTemplate issueTemplate = null;
|
||||||
IssueTemplateDao issueTemplateDao = new IssueTemplateDao();
|
IssueTemplateDao issueTemplateDao = new IssueTemplateDao();
|
||||||
if (StringUtils.isNotBlank(caseTemplateId)) {
|
if (StringUtils.isNotBlank(issueTemplateId)) {
|
||||||
issueTemplate = issueTemplateMapper.selectByPrimaryKey(caseTemplateId);
|
issueTemplate = issueTemplateMapper.selectByPrimaryKey(issueTemplateId);
|
||||||
if (issueTemplate == null) {
|
if (issueTemplate == null) {
|
||||||
issueTemplate = getDefaultTemplate(project.getWorkspaceId());
|
issueTemplate = getDefaultTemplate(project.getWorkspaceId());
|
||||||
}
|
}
|
||||||
|
|
|
@ -187,8 +187,8 @@ export default {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.form = {
|
this.form = {
|
||||||
title: '',
|
title: this.issueTemplate.title,
|
||||||
description: ''
|
description: this.issueTemplate.content
|
||||||
}
|
}
|
||||||
this.url = 'issues/add';
|
this.url = 'issues/add';
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,6 +25,7 @@ export const CASE_TYPE_OPTION = [
|
||||||
export const ISSUE_PLATFORM_OPTION = [
|
export const ISSUE_PLATFORM_OPTION = [
|
||||||
{value: 'metersphere',text: 'Metersphere'},
|
{value: 'metersphere',text: 'Metersphere'},
|
||||||
{value: 'jira',text: 'JIRA'},
|
{value: 'jira',text: 'JIRA'},
|
||||||
|
{value: 'Tapd',text: 'Tapd'},
|
||||||
{value: 'zentao',text: '禅道'},
|
{value: 'zentao',text: '禅道'},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue