fix: 测试用例创建缺陷没有关联
--bug=1008299 --user=陈建星 【测试跟踪】禅道-测试用例中创建缺陷,不能添加关联关系 https://www.tapd.cn/55049933/s/10741699”
This commit is contained in:
parent
b4801f4ba0
commit
57c49ad596
|
@ -175,7 +175,6 @@ public abstract class AbstractIssuePlatform implements IssuesPlatform {
|
|||
}
|
||||
|
||||
protected void handleTestCaseIssues(IssuesUpdateRequest issuesRequest) {
|
||||
if (!issuesRequest.isWithCaseId()) return;
|
||||
String issuesId = issuesRequest.getId();
|
||||
if (StringUtils.isNotBlank(issuesRequest.getTestCaseId())) {
|
||||
insertTestCaseIssues(issuesId, issuesRequest.getTestCaseId());
|
||||
|
|
|
@ -12,8 +12,6 @@ public class IssuesUpdateRequest extends IssuesWithBLOBs {
|
|||
private String content;
|
||||
private String testCaseId;
|
||||
private String workspaceId;
|
||||
// 带caseId的更新, 默认更新是同时保存用例的关联关系,脑图保存缺陷,不带caseId
|
||||
private boolean withCaseId = true;
|
||||
|
||||
private List<String> tapdUsers;
|
||||
/**
|
||||
|
|
|
@ -275,9 +275,7 @@ export default {
|
|||
buildCustomFields(this.form, param, this.issueTemplate);
|
||||
if (this.isPlan) {
|
||||
param.testCaseIds = [this.caseId];
|
||||
param.withCaseId = false;
|
||||
} else {
|
||||
param.withCaseId = true;
|
||||
param.testCaseIds = Array.from(this.testCaseContainIds);
|
||||
}
|
||||
if (this.planId) {
|
||||
|
|
Loading…
Reference in New Issue