access resource from plugin

Gobi September 25, 2015

HI,

In Jira 7 How can I access the resource from plugin.

for example 

/jira/download/resources/PluginKey/resources/js/app.html

If I want to access the app.html in the browser how can I access it.

1 answer

0 votes
Deniz Oğuz
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 25, 2015

Following is from my WorklogPRO plugin, substitute plugin key and resource key (from atlassian-plugin.xml file) with your own plugin key and resource key. Of course file name too.

$baseurl/download/resources/com.deniz.jira.worklog:worklog-timesheet-resources/$action.backgroundFileName
Gobi September 25, 2015

I have used this in Jira 6 and It's working fine but in jira 7 I couldn't access it like this.

Suggest an answer

Log in or Sign up to answer