Hi everyone,
In my Forge app, I’d like to retrieve the list of repositories linked to Jira issues — the same ones shown in the Developer Information panel (e.g. pull requests, commits, branches). However, I haven’t been successful so far.
I’m trying to use the following request:
const response = await api.asApp().requestJira(
route`/rest/dev-status/1.0/issue/detail?issueId=10133`,
{
headers: {
'Accept': 'application/json'
}
}
);
This should ideally return repository info related to the issue (as seen in the dev panel), but I consistently get this error:
{ "code": 401, "message": "Unauthorized; scope does not match" }
I’ve tried using several scopes, including those listed in the Forge product scopes reference, such as:
- read:jira-work
- read:jira-software
- read:source-code:jira-software
…but none of them appear to grant access to this endpoint.
Has anyone managed to access this API successfully from a Forge app (asApp or asUser)?
Or is there an alternative way to programmatically get repo URLs associated with issues/projects?
Thanks in advance for any insights!