Ask and discuss topics about the Mr Addon plugins.
Share this:
- Click to share on Twitter (Opens in new window)
- Click to share on Facebook (Opens in new window)
- Click to print (Opens in new window)
- Click to share on LinkedIn (Opens in new window)
- Click to share on Reddit (Opens in new window)
- Click to share on Pocket (Opens in new window)
- Click to share on Telegram (Opens in new window)
- Click to share on WhatsApp (Opens in new window)
- Click to share on Skype (Opens in new window)
- Click to email a link to a friend (Opens in new window)
Hi,
I am currently in JIRA S 8
And I’m struggling a little with adding my js.
At first it was small amount of code, I Just placed it in Script tags on the Annoucement Banner, but it’s getting more large as we need to do more things by javascript.
I need to be able to load .js file but i cant make it wont work.
I read i have to add it in a webresource. but i get lost in documentation searching on google, due to the big amount of versions of jira and how it changed by the time.
Can you point me the goo direction?
If you coul just point me the steps in order to get a *.js file be loaded on a general context.. in Jira 8,with the name and path to the exact *.xml file, also dont know if I need to restart jira to see if it loads the resources and keep trying like that…
I’ll be so thankful.
Adria
LikeLiked by 1 person
Hello Adria,
In my opinion, the best option is do a simple plugin for Jira. It’s very easy!
Just download this repo: https://github.com/MrAddon/MrAddon_Enchantments_for_Jira
Modify the file https://github.com/MrAddon/MrAddon_Enchantments_for_Jira/blob/master/com.mraddon.enchantments/src/main/resources/js/com.mraddon.enchantments.js
Remove the content of the file and place your javascript code here (in the com.mraddon.enchantments.js file)
After this, download and install the Atlassian SDK:
Atlassian Marketplace: Atlassian Plugin SDK – Windows
https://marketplace.atlassian.com/apps/1210950/atlassian-plugin-sdk-windows?hosting=server&tab=overview&_ga=2.18450425.1989593773.1567410558-23382967.1529307634
Atlassian Marketplace: Atlassian Plugin SDK – Mac OS X
https://marketplace.atlassian.com/apps/1210951/atlassian-plugin-sdk-mac-os-x?hosting=server&tab=overview&_ga=2.18450425.1989593773.1567410558-23382967.1529307634
Go to the root folder (that contains the pom.xml file) with the command line
and do atlas-run in the command line
After the compilation you will see a “target” folder with your JAR. Use this file to install the plugin as usual in Jira Add-ons page
Regards
LikeLike