We use a script clear Jira and Groovy caches ()
import com.onresolve.scriptrunner.canned.jira.admin.ClearCaches
def clearCaches = new ClearCaches()
// Groovy Cache
def inputs = [
(ClearCaches.FIELD__WHICH__CACHE) : ClearCaches.FIELD__WHICH__CACHE_GCL
]
clearCaches.doScript(inputs)
// Jira Cache
inputs = [
(ClearCaches.FIELD__WHICH__CACHE) : ClearCaches.FIELD__WHICH__CACHE_JIRA
]
clearCaches.doScript(inputs)
It worked in earlier Versions of JIRA / Script Runner. Now (8.5.3 / 5.6.14.1-p5) it cannot be compiled because com.onresolve.scriptrunner.canned.jira.admin.ClearCaches cannot be resolved.
Any suggestions?
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.