Hi everyone,
Sorry for my bad english, i made a groovy script to create a project and associate all the schemes (issue type scheme, workflow schemes, etc etc) and associate certain fields to the project created. I have to restart JIRA for the changes be reflected, ¿there any way to not restart JIRA after executing my script?
Thanks
Sounds like you need to clear a cache. Did you try built-in scripts -> Clear Caches -> Jira caches?
If that fixes it, then look at the code for that one and add it to your script.
Or you might try:
customFieldManager.refresh()
to clear just the CF cache instead of all.
Thanks a lot! the customFieldManager.refresh() its working! :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Feel free to mark my answer as correct ;-)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, i do. Reindexed JIRA after running the script and the only thing not working its the association of the fields to the proyect. But if i restart tomcat the fields are displayed correctly. Today i discover something strange, if i disable a plugin and then enable, the association of the fields is correct. So a process on the disable / enable plugin does something like a refresh, i dont know really.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You shouldn't need to restart JIRA after running the script as far as I know script.
Have you tried re-indexing either manually or programmatically?
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.