Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to hot update the jira project?

wangyucai
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 20, 2023

I don't want to restart the jira project every time I update the js or java file

2 answers

1 accepted

2 votes
Answer accepted
Aron Gombas _Midori_
Community Champion
April 21, 2023

The question is vaue, but I guess you're working on a Jira app in Java and you want that to be automatically reloaded.

If so, then this is the way: https://developer.atlassian.com/server/framework/atlassian-sdk/automatic-plugin-reinstallation-with-quickreload/

Radek Dostál
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 21, 2023

Also worth to note, albeit largely irrelevant here, on an sdk instance quickreload will refresh the static .js files, but on an actually non-sdk instance, .js may still be cached on the server (reverse proxy). This is not the case here since he claims to need to restart Jira so that's a different case, but thought it an interesting fact.

To combat server-side caching, it's actually worthwhile to change the plugin version in pom - which in turn will result in a brand new .js file on server. (1.0 -> 1.0.0)

I had to clean apache cache a few times because it would insist on serving me outdated .js file.

But anyway for sure quickreload does the job there, just repackage the plugin and quickreload will do the rest, including updating the .js

0 votes
Pavel Junek
Community Champion
April 20, 2023

Hi @wangyucai,

Welcome to Atlassian community!

I guess I don't quite understand what exactly is your problem? Your Jira run on custom Java (Java is not bundled with Jira - JRE) - you have installed Java on OS? 

If you installed own Java JRE or JDK on operating system, then the only option is to restart Jira after the Java update.

Pavel

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events