From 00ec9e9820a98d9c348abdfb6fed31a79ab5c642 Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Tue, 22 Nov 2022 15:53:10 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E5=A4=9A=E6=AC=A1=E4=BF=9D=E5=AD=98jira=E7=BC=BA=E9=99=B7?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E6=97=A0=E6=B3=95=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/io/metersphere/service/IssuesService.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test-track/backend/src/main/java/io/metersphere/service/IssuesService.java b/test-track/backend/src/main/java/io/metersphere/service/IssuesService.java index ca70390285..c5338969ab 100644 --- a/test-track/backend/src/main/java/io/metersphere/service/IssuesService.java +++ b/test-track/backend/src/main/java/io/metersphere/service/IssuesService.java @@ -794,8 +794,11 @@ public class IssuesService { } private String replaceJiraMdUrlParam(String url, String workspaceId, String projectId) { + if (url.contains("&workspace_id=")) { + return url; + } return url.replaceAll("platform=Jira&", - "platform=Jira&project_id=" + projectId + "&workspace_id=" + workspaceId + "&"); + "platform=Jira&workspace_id=" + workspaceId + "&"); } private Map> getCommentMap(List issues) {