Hi Atlassian Development Community,
I need your help with a Forge app that I’ve created. I’ve made a global page in Jira and now I want to get data from my Jira projects, like issues, worklogs, and groups.
I wrote some functions with resolver and invoked them in my React app. But the problem is that I can only access the function that was created when I made the Forge app
`
resolver.define('getText', (req) => {
console.log(req);
return 'Hello world!';
});
`.
This function only gives basic information, and I can’t delete it because I get an error message.
08:23:03.492 8b50fd23fc0bacbe {
payload: { example: 'my-invoke-variable' },
context: {
localId: 'ari:cloud:ecosystem::extension/1860a73-f632-43ca-93f-d4704f861b03/7d122a97-8acc-4130-9968-c241222d7838/static/jfm-hello-world-page',
cloudId: '5813b69-5e44-41b5-adbb-ee97966bd118',
environmentId: '7d122a97-8acc-4130-9968-c21222d7838',
environmentType: 'DEVELOPMENT',
moduleKey: 'jfm-hello-world-page',
siteUrl: 'https://worklogs-app.atlassian.net',
extension: { type: 'jira:globalPage' },
installContext: 'ari:cloud:jira::site/583b609-5e44-41b5-abb-ee97966bd118',
accountId: '62051d29733407067554986',
license: undefined,
jobId: undefined
}
}
the error message is 08:24:02.572 b3da422880d3b8dd Resolver has no definition for 'getText'. Error: Resolver has no definition for 'getText'. at Resolver.getFunction (webpack://jira-global-page-custom-ui/node_modules/@forge/resolver/out/index.js:44) at resolve (webpack://jira-global-page-custom-ui/node_modules/@forge/resolver/out/index.js:52) at Reference.value (bootstrap.js:1:9146)
Can anyone please help me fix this issue so that I can use my Forge app and global page in Jira to their full potential?
Thank you for your assistance.
Best regards,