From 2e85361ed6eb8eacab4de46d3f23362156e32684 Mon Sep 17 00:00:00 2001 From: Waleed Date: Fri, 10 Apr 2026 14:28:29 -0700 Subject: [PATCH] fix(tools): use OAuth-compatible URL for JSM Forms API (#4099) The Forms API has a different base URL for OAuth vs Basic Auth. Per Atlassian support, OAuth requires the /ex/jira/{cloudId}/forms pattern, not /jira/forms/cloud/{cloudId} which only works with Basic Auth. This was causing 401 Unauthorized errors. Co-authored-by: Claude Opus 4.6 --- apps/sim/tools/jsm/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/sim/tools/jsm/utils.ts b/apps/sim/tools/jsm/utils.ts index d02c794a34..94d88775cc 100644 --- a/apps/sim/tools/jsm/utils.ts +++ b/apps/sim/tools/jsm/utils.ts @@ -19,7 +19,7 @@ export function getJsmApiBaseUrl(cloudId: string): string { * @returns The base URL for the JSM Forms API */ export function getJsmFormsApiBaseUrl(cloudId: string): string { - return `https://api.atlassian.com/jira/forms/cloud/${cloudId}` + return `https://api.atlassian.com/ex/jira/${cloudId}/forms` } /**