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 <noreply@anthropic.com>
This commit is contained in:
Waleed
2026-04-10 14:28:29 -07:00
committed by GitHub
co-authored by Claude Opus 4.6
parent 59de6bbb43
commit 2e85361ed6
+1 -1
View File
@@ -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`
}
/**