I'm developing a Forge app to list all the remote links on the customer portal request UI. I think I managed to give the app the correct scope and unlicensed access permissions, correct me if I'm wrong here are relevant parts of the manifest (some scopes are likely redundant):
modules:
jiraServiceManagement:portalRequestDetailPanel:
- key: issuelink-details-hello-world-portal-request-detail-panel
resource: main
resolver:
function: resolver
render: native
title: Linked Issues
unlicensedAccess:
- customer
- unlicensed
permissions:
scopes:
- read:jira-work
- read:issue.remote-link:jira
- read:issue:jira
- read:servicedesk-request
GET https://api.atlassian.com/ex/jira/SOMENUMBERS/rest/api/3/issue/MYISSUEKEY/remotelink 403 (Forbidden)
The second error is because of the request I try to make to get the data from the REST API:
const res = await requestJira(`/rest/api/3/issue/${issueKey}/remotelink`);
I managed to resolve the second issue. The problem was that I was missing a scope, namely:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.