Hello there,
I have a question.
how can I access html page from my addon. Knowing that the URL I have is : si/jira.issueviews:issue-html
this is my atlassian-plugin
<web-resource key="issue-tracker-helper" name="Issue Tracker Helper">
<resource type="download" name="issue-html.css" location="/css/issue-html.css"/>
<resource type="download" name="rtl-content.js" location="/js/rtl-content.js"/>
<context>jira.issueviews:issue-html</context>
</web-resource>
here cannot read the JS file and CSS file as well.
thanks
if you need the url to the CSS file it should be something like this
/download/resources/[addon key]:issue-tracker-helper/issue-html.css
Where [addon key] is your plugin key and issue-tracker-helper is your web-ressource key.
Thank you @said kouzibry
can u give me the full code of this
/download/resources/[addon key]:issue-tracker-helper/issue-html.css
and where should I paste it ?
after that how can I access its CSS from my Addon ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Ali
Normally you'd have on your "atlassian-plugin.xml" file the following
<servlet name="My Servlet" i18n-name-key="my-servlet.name" key="my-servlet" class="ma.azara.tutorial.servlet.MyServlet">
<description key="my-servlet.description">The My Servlet Plugin</description>
<url-pattern>/myservlet</url-pattern>
</servlet>
<web-item name="myplugin" i18n-name-key="myplugin.name" key="myplugin" section="admin_plugins_menu/myplugin" weight="1000"
application="jira">
<description key="myplugin.description">myplugin</description>
<label key="myplugin"/>
<link linkId="myplugin-link">/plugins/servlet/myservlet</link>
</web-item>
Which should give you the url of the web item at <link>.
That being said, I am not sure I understand well, do you want to access your html files from Jira after the addon is built or are you looking for the resource files in the directory tree of your plugin ?
If the latter, then typically you'd have it setup like this :
Plugin folder -> src -> main -> resources -> ...
In your resources folder, you'll find some directories that might contain the files you are looking for, CSS, JS, Templates....
Also typically html pages are not stored as html but rather some templating format like velocity of closure (.soy).
I hope this helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hello @said kouzibry ,
if you can see the link above si/jira.issueviews:issue-html. This Link is in Jira instance once I want to print Issue.
My Addon is responsible to make Jira RTL.
Every pages are RTL expect this page....
How can I access its CSS ?
Should I follow your reply or you have another approach ?
regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
My apologize, I misunderstood what you needed,
if you need the url to the CSS file it should be something like this
/download/resources/[addon key]:issue-tracker-helper/issue-html.css
Where [addon key] is your plugin key and issue-tracker-helper is your web-ressource key.
I will post this as a separate answer so that you can accept it to help other members.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you @said kouzibry
can u give me the full code of this
/download/resources/[addon key]:issue-tracker-helper/issue-html.css
and where should I paste it ?
after that how can I access its CSS from my Addon ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.