@ibuchanan I saw you had popped up in a few other threads with similar issues. Any chance you know of any changes that might cause this? I encountered the problem when I deployed my app to production. Since then have tried adjusting scopes, reinstalling, even tried under a new app id. Upon reinstall, even my dev environment which was working, now doesn’t. It seems to be choking when I try the following,
await api.asUser()?.requestJira(route`/rest/api/3/myself?expand=groups,applicationRoles`, {
headers: {
'Accept': 'application/json'
}
})
this returns
{
"headers": {},
"ok": false,
"status": 403,
"statusText": "Forbidden"
}
data: {
"errorMessages": [
"Access to the resource was denied due to missing scope grants. Your app was granted the following scopes: [].\nThe resource can be accessed by having one of these groups of scopes:\n * [read:jira-user]\n * [read:application-role:jira, read:group:jira, read:user:jira, read:avatar:jira]\n"
]
}`)
My manifest includes (admittedly with some shot-in-the-dark scopes),
- write:jira-work
- manage:jira-configuration
- manage:jira-project
- read:application-role:jira
- read:avatar:jira
- read:confluence-content.all
- read:confluence-content.summary
- read:confluence-space.summary
- read:content.metadata:confluence
- read:field-configuration:jira
- read:group:jira
- read:issue-meta:jira
- read:issue-security-level:jira
- read:issue.changelog:jira
- read:issue.vote:jira
- read:issue:jira
- read:jira-user
- read:page:confluence
- read:status:jira
- read:user:jira
- read:user.columns:jira
- read:user.property:jira
- read:user-configuration:jira
- write:confluence-content
- write:confluence-file
- write:confluence-props
- write:confluence-space
- write:issue.property:jira
- write:issue:jira
- read:me
- read:confluence-user
- read:jira-work
- read:account```
ALSO, the MacroConfig panel for production is now displaying a “Failed to Load” error.
Failed to load
For this app to display, you need to press the Allow Access button in the macro to allow the app to access Atlassian products on your behalf.
but now having a heck of a time getting it to prompt for Allow Access again, even removing and readding read:account. My dev environment MacroConfig does not prompt the same message and allows for config.
(UPDATE: Removing dev environment install allowed for MacroConfig, but still unable to make asUser /rest/api/3/myself call)