Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,555,235
Community Members
 
Community Events
184
Community Groups

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!
Apr 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 Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Apr 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.
Apr 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 Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Apr 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