Hi,
I try to read the Jira Audit log on Jira Server 8.13+ with ScriptRunner. But I don't know how to get the needed component AuditService.
If I run
import com.atlassian.audit.api.AuditSearchService
import com.atlassian.jira.component.ComponentAccessor
def auditSearchService = ComponentAccessor.getComponent(AuditSearchService)
if (!auditSearchService) {
log.error "No AuditSearchService found."
}
in the console, I always get the error No AuditSearchService found.
What did I miss here?
Thanks,
Henning