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.