How to install Add-On properly in JIRA System?

Hello to all,

I've finished my plugin. Now I have already uploaded and installed the jar-file from the target-folder into the jira system. Whenever I jump to the homepage of my plugin, it seems the plugin doesn't read the css and javascript files. In the JIRA System where I created the plugin everything is running correctly. And all functionalities are working fine.

What do I have to care for when uploading my plugin into an existing JIRA System. My Plugin uses

  • Webwork
  • Active Objects
  • Web Resources

Please help me.

1 answer

1 accepted

1 vote
Accepted answer

What are the differences between your development server and production? Compare the system info pages for a start.

Are you getting any log errors on production? Either when running the plugin or loading it initially?

I use different tomcat servers. The java version is also different.

I don't know how to check the log infos in an already existing jira system. I only know how to see the logs on my own system from the installation wizard.

Right. Well, the Tomcat variation might be it, but running stuff compiled under one version of Java in a different version is asking for trouble.

Try building your plugin using the version of Java (and ideally, Tomcat) that you are using in production.

Where can I change my java version of my Plugin?

OK, java version is now the same. Still the views aren't displayed properly. Do you think it depends on my base url. For the system I want to integrat the plugin it's https instead http?

I've got an oracle db instead of hsql and I am using active objects.

Do I have to restart the JIRA System, so the plugin can run correctly?

Any ideas?

You've completely recompiled the plugin with the correct target version of Java, and re-installed it. A restart of Jira might be helpful to ensure it's all "clean"

The base url is critical to Jira, you can only have one, so I'm not sure why you're asking about http and https. It's one or the other, but your plugin should not really care, it should just work. If it's trying to use a different url from the base in Jira, then it's wrong and it's not going to work.

Database and active objects shouldn't matter at all - if you've written the code correctly, then that's all abstracted and you could be using hsql, mysql or anything else Jira runs on.

Yes, I've recompiled it completly. But no effects.

how can I restart Jira? It's the test-system of my company I'm focusing. I've got admin rights.

Log in to the server, stop the service (or use the shutdown script), then start it again (or use the startup script)

OK, I found the mistake why all my views were displayed weird in our productive system.

In my own test system, I always used URL paths including jira like <host>/jira/secure/Resource.jspa.

Omitting "jira" in the URL causes that the single websites are called correctly and displayed properly like intended. But now when I use my own JIRA test-system I can't call the websites anymore because jira is missing in the URL. Well, what counts is that my plugin works fine in productive system.

Sounds like you've written a plugin with a hard-coded path. You should have used the base url in the application - <base url>/secure in your example.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,767 views 18 21
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you