How to request download resources via http?

Hi everyone,

I want to create a custom input form for jira tickets as an html page. I want this page to be served by Jira’s tomcat.

I tried to make Jira serve my contents, by declaring them as “web-resource/resource” of type “download”.

What is the URL to access those resources?

For example, if I follow the HelloWorld tutorial, I would expect the “downloadable.js” to be available under http://localhost:2990/jira/plugins/myPlugin/css/downloadable.css . But instead I get a 404 page.


1 Like

the resources in production Jira instance are batched. It means your CSS file will land in the same file with other CSS files that are in the same context.

It is possible to serve own resources, by doing it manually in a servlet or filter. You can also force plugin framework to serve your file in a separate batch by adding a condition. But most probably you don’t need it. Jira can inject files from a context to the page. I don’t have time now, but can describe one of those later if you’re interested.

If you’d like an input for Jira tickets, you can try to use an issue collector.

1 Like

Thanks for your helpful answer! I’ll give the conditions a try. The issue collector seems not flexible enough for me (I want to specify exact positions of fields on the page).

With conditions you can get you’re own batch, but you will not be able to reference that from a static HTML page (as I understood your question), because you will have a random part of the URL, e.g. /s/d41d8cd98f00b204e9800998ecf8427e-CDN/en_GB/7402/131c587a84e4ee088cb3d1cec7ecd765481c9c79/d2a3a5b5864a6d48045aa56a48a874d5 and so on. So if you just want it to be loaded in a certain context that is ok, but if you need to address the resource itself that approach won’t work.

You can use a servlet in that case.