diff --git a/backend/src/main/java/io/metersphere/track/controller/IssuesController.java b/backend/src/main/java/io/metersphere/track/controller/IssuesController.java index 2adb52ac7b..6c523a20f9 100644 --- a/backend/src/main/java/io/metersphere/track/controller/IssuesController.java +++ b/backend/src/main/java/io/metersphere/track/controller/IssuesController.java @@ -54,9 +54,9 @@ public class IssuesController { return issuesService.getIssues(id); } - @GetMapping("/auth/{platform}") - public void testAuth(@PathVariable String platform) { - issuesService.testAuth(platform); + @GetMapping("/auth/{orgId}/{platform}") + public void testAuth(@PathVariable String orgId, @PathVariable String platform) { + issuesService.testAuth(orgId, platform); } @GetMapping("/close/{id}") diff --git a/backend/src/main/java/io/metersphere/track/service/IssuesService.java b/backend/src/main/java/io/metersphere/track/service/IssuesService.java index 8b9352ee2a..c2407b72a4 100644 --- a/backend/src/main/java/io/metersphere/track/service/IssuesService.java +++ b/backend/src/main/java/io/metersphere/track/service/IssuesService.java @@ -72,8 +72,10 @@ public class IssuesService { @Resource private TestCaseMapper testCaseMapper; - public void testAuth(String platform) { - AbstractIssuePlatform abstractPlatform = IssueFactory.createPlatform(platform, new IssuesRequest()); + public void testAuth(String orgId, String platform) { + IssuesRequest issuesRequest = new IssuesRequest(); + issuesRequest.setOrganizationId(orgId); + AbstractIssuePlatform abstractPlatform = IssueFactory.createPlatform(platform, issuesRequest); abstractPlatform.testAuth(); } diff --git a/frontend/src/business/components/settings/organization/components/JiraSetting.vue b/frontend/src/business/components/settings/organization/components/JiraSetting.vue index a167e16cb6..39b838bbfe 100644 --- a/frontend/src/business/components/settings/organization/components/JiraSetting.vue +++ b/frontend/src/business/components/settings/organization/components/JiraSetting.vue @@ -58,7 +58,7 @@