Skip to content

Commit dd33e6d

Browse files
waleedlatif1claude
andcommitted
fix(tools): use OAuth-compatible URL for JSM Forms API
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 <noreply@anthropic.com>
1 parent 2b9fb19 commit dd33e6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/sim/tools/jsm/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export function getJsmApiBaseUrl(cloudId: string): string {
1919
* @returns The base URL for the JSM Forms API
2020
*/
2121
export function getJsmFormsApiBaseUrl(cloudId: string): string {
22-
return `https://api.atlassian.com/jira/forms/cloud/${cloudId}`
22+
return `https://api.atlassian.com/ex/jira/${cloudId}/forms`
2323
}
2424

2525
/**

0 commit comments

Comments
 (0)