How to load JavaScript web-resource in JSD customer portal? Edited

I have a web resource defined as follows. alert.js properly loads and creates an alert on JIRA issue pages, but it doesn't load in the customer portal. What is the correct way to load resources/javascript on the customer portal?

 I have tried a variety of location designations, w/ and w/o the property, and some of the JSD customer portal specific contexts, but no luck.

    <web-resource key="my-plugin-resources" name="My Plugin Resources">
        <resource type="download" location="/js/alert.js" name="alert.js">
            <property key="content-type" value="text/js"/>

2 answers

1 accepted

Hi Adam,

You should use:


Thanks! that was the trick!

0 vote
Nicolas P I'm New Here Nov 21, 2017

Hi there,

I'm trying to do the something similar on Jira Service Desk.
But it's not working ... :( I'm not sure my atlassian-plugin.xml is loaded..

Where should be this file ?
I put the file in jirasoftware/conf/atlassian-plugin.xml without editing any other file (web.xml, context ...)

Could you guys tell me if i'm right there ?

Suggest an answer

Log in or Join to answer
Community showcase
Emilee Spencer
Published yesterday in Marketplace Apps

Marketplace Spotlight: DeepAffects

Hello Atlassian Community! My name is Emilee, and I’m a Product Marketing Manager for the Marketplace team. Starting with this post, I'm kicking off a monthly series of Spotlights to highlight Ma...

41 views 0 3
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot