Audit logs with rest API

Leonard Chew
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 6, 2023

Hi all

I would like to use the Jira REST API to get some specific audit log data of a few projects with sensitive data.
I have seen, that the service to get the audit data is deprecated on my current version Jira 9.4.4:

https://docs.atlassian.com/software/jira/docs/api/REST/9.4.4/#api/2/auditing-getRecords

Does anyone know if there is an alternative to the depricated method?

1 answer

1 accepted

3 votes
Answer accepted
Leonard Chew
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 1, 2023

For anyone with the same problem...

I have contacted Atlassian Support with this issue.

It appears that since Jira 8.8 with the major changes to the auditing mechanism, a new API for the audit log has been created and the old API has been deprecated.

The new Auditing API has not been migrated to the general API, which generates confusion.

 

So here is the answer:

OLD Audit API: 

  • /rest/api/2/auditing/record

NEW Audit API: 

  • /rest/auditing/1.0/events

The Documentation for the NEW API is here: 

Atlassian Support has opened a Ticket to move the new Audit API into the general Jira REST API:

Srikanth Ganipisetty August 23, 2023

Thanks for sharing this, it worked on my new instance with the latest version @Leonard Chew 

  • /rest/auditing/1.0/events
Like # people like this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
9.4.4
TAGS
AUG Leaders

Atlassian Community Events