Can I find the date/time a user was added in to a group in Jira

Hi,

Is there a way of getting the date/time a user was added into a group in Jira. using the java api?

Hi @Michael1

You can do this in the IHM if you are admin Jira : Administration > System > Audit Log and you can add “group” in search area.

You can try with this API : Audit log improvements

Fabien [Elements]

Is it possible to do this using the java api opposed to rest api?

I am wanting to display this information in Jira and was going to write a scriptrunner script to do so.

Thanks for the reply

May be with auditSearchService like this :

import com.atlassian.audit.api.AuditSearchService
import com.atlassian.jira.component.ComponentAccessor

def auditSearchService = ComponentAccessor.getOSGiComponentInstanceOfType(AuditSearchService)
if (!auditSearchService) {
    log.error "No AuditSearchService found."
}

Fabien [Elements]

Thank you - I will attempt it now. Thanks for the response.

1 Like