diff --git a/backend/src/main/java/io/metersphere/track/issue/AbstractIssuePlatform.java b/backend/src/main/java/io/metersphere/track/issue/AbstractIssuePlatform.java index 1dee347300..7be0ab7042 100644 --- a/backend/src/main/java/io/metersphere/track/issue/AbstractIssuePlatform.java +++ b/backend/src/main/java/io/metersphere/track/issue/AbstractIssuePlatform.java @@ -174,7 +174,9 @@ public abstract class AbstractIssuePlatform implements IssuesPlatform { protected void handleIssueUpdate(IssuesUpdateRequest request) { request.setUpdateTime(System.currentTimeMillis()); issuesMapper.updateByPrimaryKeySelective(request); - handleTestCaseIssues(request); + if (!request.isWithoutTestCaseIssue()) { + handleTestCaseIssues(request); + } } protected void handleTestCaseIssues(IssuesUpdateRequest issuesRequest) { diff --git a/backend/src/main/java/io/metersphere/track/request/testcase/IssuesUpdateRequest.java b/backend/src/main/java/io/metersphere/track/request/testcase/IssuesUpdateRequest.java index afc96dcafd..58441ff9bc 100644 --- a/backend/src/main/java/io/metersphere/track/request/testcase/IssuesUpdateRequest.java +++ b/backend/src/main/java/io/metersphere/track/request/testcase/IssuesUpdateRequest.java @@ -28,4 +28,6 @@ public class IssuesUpdateRequest extends IssuesWithBLOBs { private boolean thirdPartPlatform; private List follows; + + private boolean withoutTestCaseIssue; // 不更新用例和缺陷的关联关系 } diff --git a/frontend/src/business/components/track/case/components/TestPlanIssueEdit.vue b/frontend/src/business/components/track/case/components/TestPlanIssueEdit.vue index a2f7373251..2d0a52e35e 100644 --- a/frontend/src/business/components/track/case/components/TestPlanIssueEdit.vue +++ b/frontend/src/business/components/track/case/components/TestPlanIssueEdit.vue @@ -7,7 +7,7 @@ append-to-body ref="msEditDialog"> @@ -31,7 +31,7 @@ export default { return getCurrentProjectID(); } }, - props: ['caseId', 'planId'], + props: ['caseId', 'planId', 'isMinder'], methods: { open(data) { this.visible = true; diff --git a/frontend/src/business/components/track/common/minder/TestCaseMinder.vue b/frontend/src/business/components/track/common/minder/TestCaseMinder.vue index 2a09238b9e..3e4b4cf2ec 100644 --- a/frontend/src/business/components/track/common/minder/TestCaseMinder.vue +++ b/frontend/src/business/components/track/common/minder/TestCaseMinder.vue @@ -18,7 +18,7 @@ ref="minder" /> - + diff --git a/frontend/src/business/components/track/issue/IssueEditDetail.vue b/frontend/src/business/components/track/issue/IssueEditDetail.vue index b5230a460e..1adf60b3d4 100644 --- a/frontend/src/business/components/track/issue/IssueEditDetail.vue +++ b/frontend/src/business/components/track/issue/IssueEditDetail.vue @@ -150,7 +150,8 @@ export default { } }, caseId: String, - planId: String + planId: String, + isMinder: Boolean, }, computed: { isSystem() { @@ -293,6 +294,8 @@ export default { param.resourceId = this.planId; } + param.withoutTestCaseIssue = this.isMinder; + param.thirdPartPlatform = this.enableThirdPartTemplate; return param; },