mirror of
https://github.com/simstudioai/sim.git
synced 2026-09-24 15:45:35 +08:00
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:
co-authored by
Claude Opus 4.6
parent
59de6bbb43
commit
2e85361ed6
@@ -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`
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user