You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
I don't want to restart the jira project every time I update the js or java file
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/
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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.