You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I'm trying to make jira plugin. I want to add image, css and js files in my html file but I couldn't do it.
That's how looks my atlassian-plugin.xml
<web-resource key="Saphire-resources" name="Saphire Web Resources">
<resource type="download" name="Saphire.css" location="css/Saphire.css"/>
<!-- add our web panel -->
<web-panel key="myPanel" location="servicedesk.portal.subheader">
<resource name="view" type="static" location="index.html"/>
<resource type="download" name="images/" location="images/"/>
I'm not sure where i have to write the resources for my web HTML, so I tried one in web-panel label and another one in web-resource label.
And I writte in my HTML the next code:
<link rel="stylesheet" type="text/css" href="$req.contextPath/download/resources/com.atlasian.saphire:Saphire-resources/Saphire.css">
<button id="send" type="button" class="btn" onclick="prompt()"><img src="$req.contextPath/download/resources/com.atlasian.saphire:Saphire-resources/images/send.png" /></button>
I have the same problem win a JS file.