webResourceManager.requireResource does not work for JIRA 6 issue navigator 'detail view'

ziohimself July 28, 2013

Our plugin uses webResources, but the only way so far to include them into the new screen available in the issue navigator (http://blogs.atlassian.com/2013/05/meet-new-jira-6/ , "Detail View: optimize the way you work with issues") is to add them into atl.general context:

<web-resource key="foo" name="FooBar">
        <dependency>com.atlassian.auiplugin:jquery</dependency>
        <context>atl.general</context>
        <context>atl.admin</context>

        <resource type="download" name="baz.js" location="js/baz.js">
            <property key="content-type" value="text/javascript"/>
        </resource>
</web-resource>

if I use

webResourceManager.requireResource("com.qux.jira:foo")

the web-resources are not included.

Is there any possible way to include web-resources, except using the atl.general context?

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Ma Hao June 1, 2015

DId you try to add prefix "$" in front of the code "webResourceManager.requireResource("com.qux.jira:foo")"?

SerhiyO June 1, 2015

Certainly. For that is how one uses variables in velocity. But the problem was that neither if called from velocity, nor when called from java, the web resources were not included.

Saurabh Gupta April 5, 2018

By mistake i was using # instead of $

TAGS
AUG Leaders

Atlassian Community Events