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.
For JSM June Challenge #2, share how your non-technical teams like HR, legal, marketing, finance, and beyond started using Jira Service Management! Tell us: Did they ask to start using it or...
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