Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Resolver in Custom UI issue

Tried this usage Documentation for custom UI but got error on lint

 

 error document should NOT have additional property 'function' valid-document-required

 

Can someone please help how to use resolver in custom UI

 

Manifest:

 
modules:

  jira:issuePanel:

    - key: hello-world-panel

      resource: example-resource

      resolver:

        function: issue-panel-resolver

      title: hello-jira:issuePanel-app

      icon: https://developer.atlassian.com/platform/forge/images/issue-panel-icon.svg

resources:

  - key: example-resource

    path: static/app/public/index.html

    tunnel:

      port: 9000

function:

  - key: issue-panel-resolver

    handler: index-resolver.handler

app:

  id: ari:cloud:ecosystem::app/xxx-key---

permissions:

  scopes:

    - read:jira-work

2 comments

Comment

Log in or Sign up to comment
Victor Debone
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 19, 2022

Hi @Sandeep K welcome to the community!

From the manifest you provided, everything looks ok. What I'd do is try to remove both mentions of functions and add one at a time, to verify which of the two is giving the error. What I suspect is happening here is that the indentation is missing a level and making the function inside the resolver to evaluate wrongly.

I hope that helps.

Hi @Sandeep K

As @Victor Debone mentioned most probably the issue is in indentation.

You can find an example of how the manifest should be built at this link https://developer.atlassian.com/platform/forge/build-a-custom-ui-app-in-jira/.

Regards,

TAGS
AUG Leaders

Atlassian Community Events