The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Comments for this post are closed

Community moderators have prevented the ability to post new comments.

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