Creating post function resolver for view/edit/create resources

I’ve defined a resolver for use with a custom UI for a Post Function create/edit/view screen but I receive the following error when trying to invoke one of the defined functions:

Entry point “resolver” for extension “forge-app-name” could not be invoked as it does not exist or does not reference a function or endpoint

I’ve defined the resolve in the manifest for the post function module but the documentation doesn’t mention the resolver parameter anywhere (unlike for example, the jira:adminPage module). Is this supported?

I’m not sure without the rest of the manifest, but did you define the resolver function in the manifest? The general documentation for the Forge resolver is here: https://developer.atlassian.com/platform/forge/runtime-reference/forge-resolver/
It’s also possible there’s an issue with how the resolver is exported, so maybe you could share a simplified version of that?

1 Like

The resolver is defined in the manifest as follows:
image

The resolver is exported in src/index.js

export { postFunctionSettingsHandler } from ‘./resolvers/pfSettings.js’;

pfSettings.js:

I have another resolver defined in the app for the jira:adminPage module that’s defined in the same way and works as expected.

In the workflowPostFunction, you have the resolver function as pfSettings-resolver but in the resolver section you showed, there’s only configure-resolver and similarly with the variable names. Not sure if it’s just sections you didn’t share. If that’s true, then I’d guess it’s because it’s not supported or the whole thing is in preview and may not have all features. :person_shrugging:

1 Like

Apologies, I screenshotted the wrong bit:

modules:
jira:adminPage:
- key: admin-page
resource: admin
# resolver:
# function: admin-resolver
render: native
title: xxxxx
- key: configure-configure-page
resource: configure
resolver:
function: configure-resolver
render: native
title: Configure Jxxxxx
useAsConfig: true

jira:workflowPostFunction:
- key: jxxxxxxxxxxx-postfunction
name: xxxxxxxxxx Post Functions
description: xxxxxxxxx
function: postfunction
view:
resource: pfSettings
resolver:
function: pfSettings-resolver
edit:
resource: pfSettings
resolver:
function: pfSettings-resolver
create:
resource: pfSettings
resolver:
function: pfSettings-resolver

function:
- key: configure-resolver
handler: index.configureHandler
- key: pfSettings-resolver
handler: index.postFunctionSettingsHandler
- key: postfunction
handler: index.postfunction

resources:

  • key: admin
    path: src/frontend/admin.jsx
  • key: configure
    path: src/frontend/configure.jsx
  • key: pfSettings
    path: static/pfSettings/build