fix: 测试计划脑图辑缺陷后会自动取消关联

--bug=1009066 --user=陈建星 【测试跟踪】禅道缺陷模板,测试计划中,脑图模式编辑缺陷后会自动取消关联 https://www.tapd.cn/55049933/s/10911599
This commit is contained in:
chenjianxing 2022-01-12 18:40:07 +08:00 committed by jianxing
parent cfc4ee64f8
commit 749ca13ed9
2 changed files with 3 additions and 4 deletions

View File

@ -66,13 +66,13 @@ public class ZentaoPlatform extends AbstractIssuePlatform {
public IssuesDao getZentaoAssignedAndBuilds(IssuesDao issue){ public IssuesDao getZentaoAssignedAndBuilds(IssuesDao issue){
JSONObject zentaoIssue = zentaoClient.getBugById(issue.getPlatformId()); JSONObject zentaoIssue = zentaoClient.getBugById(issue.getPlatformId());
String openedBy = zentaoIssue.getString("openedBy"); String assignedTo = zentaoIssue.getString("assignedTo");
String openedBuild = zentaoIssue.getString("openedBuild"); String openedBuild = zentaoIssue.getString("openedBuild");
List<String>zentaoBuilds = new ArrayList<>(); List<String>zentaoBuilds = new ArrayList<>();
if(Strings.isNotBlank(openedBuild)){ if(Strings.isNotBlank(openedBuild)){
zentaoBuilds = Arrays.asList(openedBuild.split(",")); zentaoBuilds = Arrays.asList(openedBuild.split(","));
} }
issue.setZentaoAssigned(openedBy); issue.setZentaoAssigned(assignedTo);
issue.setZentaoBuilds(zentaoBuilds); issue.setZentaoBuilds(zentaoBuilds);
return issue; return issue;
} }

View File

@ -15,7 +15,7 @@
ref="minder" ref="minder"
/> />
<IssueRelateList :case-id="getCurCaseId()" @refresh="refreshRelateIssue" ref="issueRelate"/> <IssueRelateList :case-id="getCurCaseId()" @refresh="refreshRelateIssue" ref="issueRelate"/>
<test-plan-issue-edit :plan-id="planId" :case-id="getCurCaseId()" @refresh="refreshIssue" ref="issueEdit"/> <test-plan-issue-edit :is-minder="true" :plan-id="planId" :case-id="getCurCaseId()" @refresh="refreshIssue" ref="issueEdit"/>
</div> </div>
</template> </template>
@ -31,7 +31,6 @@ import {getPlanCasesForMinder} from "@/network/testCase";
import IssueRelateList from "@/business/components/track/case/components/IssueRelateList"; import IssueRelateList from "@/business/components/track/case/components/IssueRelateList";
import TestPlanIssueEdit from "@/business/components/track/case/components/TestPlanIssueEdit"; import TestPlanIssueEdit from "@/business/components/track/case/components/TestPlanIssueEdit";
import {addIssueHotBox} from "./minderUtils"; import {addIssueHotBox} from "./minderUtils";
import {getIssuesById} from "@/network/Issue";
export default { export default {
name: "TestPlanMinder", name: "TestPlanMinder",
components: {MsModuleMinder, TestPlanIssueEdit, IssueRelateList}, components: {MsModuleMinder, TestPlanIssueEdit, IssueRelateList},