Hello community,
I'm having a hard time with a webpanel which shows in Issue view, here's the context:
The webpanel is defined like this:
<web-panel name="panel name" key="issue-view-panel" location="atl.jira.view.issue.right.context">
.....
<resource name="view" type="velocity" location="templates_path/template.vm"/>
<context-provider class="fullyqualifiedclass"/>
</web-panel>
Which uses resources (css and javascript generated via webpack) defined like this:
<web-resource key="entrypoint-main">
<transformation extension="js">
<transformer key="jsI18n"/>
</transformation>
<context>atl.general</context>
<context>customerportal</context>
<context>servicedesk.general</context>
<context>jira.general</context>
<dependency>com.atlassian.plugins.atlassian-plugins-webresource-plugin:context-path</dependency>
<resource type="download" name="myplugin-main-min.css" location="frontend/myplugin-main-min.css"/>
<resource type="download" name="main.js" location="frontend/main.js"/>
</web-resource>
And the template loads the resource (and sets the element to load React page) like this:
$webResourceManager.requireResource("my.plugin.path:entrypoint-main")
<div class="ac-content">
<section name="sourcePage" id="some_id">
</section>
</div>
In the issue view from "browse" (http://localhost:2990/jira/browse/ISSUE_KEY) the content is correctly loaded, showing the page created in React.
However, in the issue view from "queues" (http://localhost:2990/jira/projects/<PROJECT_KEY>/queues/custom/1/<ISSUE_KEY>) it shows the panel link, but no content, or better saying, loads the HTML that is in the velocity template, but does not load anything from the React page.
Does anyone have an idea of what might be missing here?
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.