It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Cant import JS in Jira plugin


I've been trying to develop a simple plugin that uses a JS code to do some things.

Unfortunately i can't import the JS in the velocity file.

I'm using a web resource component:

<web-resource name="Button Resources" i18n-name-key="" key="button-resources">
<description key="button-resources.description">The Button Resources Plugin</description>
<resource name="ButtonJS" type="download" location="js/button.js"/>

 And i have a very simple script to test located in /my-plugins/button-test/plugin/src/main/resources/js:


finally, in my velocity file i have the following code:


<button id="issue-btn" class="aui-button">Exportar</button>

The button shows correctly, but the alert does not appear.

Am i doing something wrong?

Thank you in advance.

1 answer

0 votes

Hi @Angel Peña ,

I may not the best person to ask this question, but I believe the same topic has already been discussed in the below Community threads and external links:

You may want to review the above links to see if in there you can find the answer to your question. 

Otherwise, in case you don't find anything useful in the provided links and you don't manage to get any other reply in the next days, I would advise to refer to the resources listed in


I hope this helps.



Thank you!

I tried the links you provided, but unfortunately, i could not solve my issue.

I'll proceed to create a question in the developers community.


You are very welcome @Angel Peña!

Also, if you have time, once you will get your question answered in one of the other resources please paste the solution in here as well.


Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira

Keep your team in the loop with Team @mentions in Jira Software!

Hi everyone! My name is Jenny, a Product Manager at Atlassian. After launching Team @mentions in Confluence, we heard a lot of positive feedback from customers that they love how easy it is to @men...

222 views 4 12
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you