i tried to use the forge portalRequestDetailPanel template from Forge create.
Sadly it is impossible to invoke a function from the JSM portal, i’m getting this error:
global-bridge.js:2 Uncaught (in promise) Error: Invocation of the function is forbidden
at https://jsm-help-center-ui.prod-east.frontend.public.atl-paas.net/assets/js/252.chunk.49d5c2d6eb5216a636ae.js:2:75184
at h (https://jsm-help-center-ui.prod-east.frontend.public.atl-paas.net/assets/js/servicedesk-vendor.chunk.808963186cd887af0c4f.js:2:1218160)
at Generator.<anonymous> (https://jsm-help-center-ui.prod-east.frontend.public.atl-paas.net/assets/js/servicedesk-vendor.chunk.808963186cd887af0c4f.js:2:1219487)
at Generator.next (https://jsm-help-center-ui.prod-east.frontend.public.atl-paas.net/assets/js/servicedesk-vendor.chunk.808963186cd887af0c4f.js:2:1218570)
at n (https://jsm-help-center-ui.prod-east.frontend.public.atl-paas.net/assets/js/servicedesk-vendor.chunk.808963186cd887af0c4f.js:2:1789616)
at s (https://jsm-help-center-ui.prod-east.frontend.public.atl-paas.net/assets/js/servicedesk-vendor.chunk.808963186cd887af0c4f.js:2:1789827)
Error: Invocation of the function is forbidden
at fe.error (https://forge.cdn.prod.atlassian-dev.net/global-bridge.js:2:153277)
at Object.<anonymous> (https://forge.cdn.prod.atlassian-dev.net/global-bridge.js:2:161050)
at JSON.parse (<anonymous>)
at Te.o (https://forge.cdn.prod.atlassian-dev.net/global-bridge.js:2:160909)
at Te (https://forge.cdn.prod.atlassian-dev.net/global-bridge.js:2:161062)
at s.on (https://forge.cdn.prod.atlassian-dev.net/global-bridge.js:2:165722)
at je (https://forge.cdn.prod.atlassian-dev.net/global-bridge.js:2:165859)
at https://forge.cdn.prod.atlassian-dev.net/global-bridge.js:2:171845
at e.try (https://forge.cdn.prod.atlassian-dev.net/global-bridge.js:2:144329)
at https://forge.cdn.prod.atlassian-dev.net/global-bridge.js:2:171642
I tried to add some additional scopes but that doesn’t work either.
Is there some configuration to make those request working ?
After spending hours testing Forge/Bridge APIs and components (storage, webtriggers, invoke, invokeRemote…) and following several tutorials from the UI KIT, UI KIT 2, and Custom UI documentation (https://developer.atlassian.com/platform/forge/build-a-custom-ui-app-in-jira-service-management/), as well as cloning example app repositories from Atlassian, I have made no progress. Not even the example apps created with “forge create” seem to work properly.
None of the Forge/Bridge APIs or components are behaving as expected (they don’t function) for any Jira Service Management module.
So, It seems necessary to conduct a more in-depth review of Forge’s integration with Jira Service Management, as there appears to be a lack of compatibility or sufficient documentation for these specific modules.
Hey @DonAlcantara , just wanted to share here our findings.
On this case, at first we were not able to reproduce the behavior on our lab instances. But at some point we noticied we were able to hit the same error when changing the user’s Product access to Jira Service Management to “Customer ”, only.
Hi Gustavo,
I have built an Atlassian Forge app using the module “jiraServiceManagement:portalRequestCreatePropertyPanel.” Inside the UIkit-2 frontend, I’m invoking a resolver but get the same error (denied: “Invocation of the function is forbidden”).
It is not suitable to give all portal users JSM agent licenses!
Do you have any hints on how to overcome this limitation?