Example scripts
To homepage
Jira

Clear Jira internal caches
App in script

ScriptRunner For Jira
by Adaptavist
Compatibility

Jira (8.0 - 8.19)

ScriptRunner For Jira (7.10.0)
Language |
groovy
import com.atlassian.event.api.EventPublisher
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.event.ClearCacheEvent
ComponentAccessor.getComponent(EventPublisher).publish(ClearCacheEvent.INSTANCE)
Having an issue with this script?
Report it here