I have a custom Atlassian Forge resolver and Vue Custom UI setup
import Resolver from '@forge/resolver'
const resolver = new Resolver()
resolver.define('getIssueKey', ({context}) => {
const jiraKey = context.extension.issue.key
console.info(`Returning jira key ${jiraKey}`)
return jiraKey
})
export const handler = resolver.getDefinitions()
My Vue Custom UI is calling the resolver
<script lang='ts'>
import { defineComponent } from 'vue'
import { invoke } from '@forge/bridge'
export default defineComponent({
mounted() {
var jiraKey = 'Retrieving jira key' as any
invoke('getIssueKey').then((data) => {
console.info('Success')
jiraKey = data
}).catch(() => jiraKey = 'Error retrieving jira key')
}
})
Although the resolver log shows "Returning jira key ESP-343", the promise callbacks are not triggered. No further logs are seen.
Is there a coding error I'm missing, or does a Forge custom UI have to be written in React?