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
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.svgresources: - key: example-resource path: static/app/public/index.html tunnel: port: 9000function: - key: issue-panel-resolver handler: index-resolver.handlerapp: id: ari:cloud:ecosystem::app/xxx-key---permissions: scopes: - read:jira-work
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.
The indentation is fine but misaligned since I copy-pasted it.
Started working with the below manifest, and the function moved to the module block. seems the documentation code is outdated
Thanks for the reply.
```
You're correct, there was a mistake on the example manifest.
I fixed the example and it will get updated in a couple of days, thank you!
@Sandeep K @Victor Debone which code snippet was misaligned? The first one which Sandeep posted or the last one?
I guess the first one was the right one because the function block was outside the modules block!
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,
It looks like you're new here. Sign in or register to get started.