Question: I need to create a Forge app with a jira:issuePanel
that appears in only ONE specific project, not across all projects on the site.
What I've tried:
useProductContext()
in Custom UI - returns undefinedinvoke()
to get project info - the invoke call doesn't executereq.context.extension.issue.key
in resolver - same issue with invoke not connectingDetails:
render: native
)read:jira-work
permissionforge install
, there's no option to select specific projects - it installs globallyQuestion: Is there a way to scope a jira:issuePanel
to a single project? Or is global installation the only option for this module type?
If project-scoping isn't possible, what's the recommended approach for building project-specific functionality in issue panels?
Hey @Ryan Jones
Thanks for your question. @Sunny Ape is right that you'll probably see quicker replies at developer.atlassian.com/community - the community forums specifically set up for app developers, however we do still answer questions here in the community forums.
You can use the displayConditions option for the Jira Issue Panel module in your app manifest to specify the projects you want the panel to work for.
For example, I created a test project with the following manifest:
modules:
jira:issuePanel:
- key: test-issue-panel-hello-world-issue-panel
resource: main
resolver:
function: resolver
render: native
title: CART Only Issue Panel
icon: https://developer.atlassian.com/platform/forge/images/icons/issue-panel-icon.svg
displayConditions:
projectKey: CART
Hello @Ryan Jones
The place to ask such a question is in the Forge Modules area of the Developer's Community forum.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.