Hey together
I’m completely new to forge and also totally lost regarding some problem
My situation is, that we have to use forge to build a custom app for our company.
This app should communicate with a self hosted Java backend (build with spring) via REST services.
I’ve found this way to handle it:
https://developer.atlassian.com/platform/forge/apis-reference/ui-api-bridge/invokeRemote/
But when I’m trying
import { invokeRemote } from "@forge/bridge";
it only says, the import cannot be found.
I’m onto the current CLI version.
After realising, that this invokeRemote feature is only accessable in preview I’ve tried several approaches to enable it, but nothing worked.
This is my manifest.yaml:
jira:issueAction:
- key: jiracustomui-hello-world-issue-action
resource: main
resolver:
function: resolver
viewportSize: large
title: jiracustomui
function:
- key: resolver
handler: index.handler
endpoint:
- key: jiratoabacus
remote: jiratoabacusRemote
route:
path: '/test'
auth:
appUserToken:
enabled: true
appSystemToken:
enabled: false
resources:
- key: main
path: static/hello-world/build
permissions:
scopes:
- read:jira-work
- read:app-user-token
- storage:app
content:
styles:
- unsafe-inline
external:
fetch:
backend:
- 'https://[...].io'
app:
id: [...]
remotes:
- key: jiratoabacusRemote
baseUrl: 'https://[...].io/api/test'
Can you please help and explain to me what I am doing wrong and how can I do it right?
If you need further informations, feel free to comment
Thx in advance and kind regards
Martin