Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

get audit logs via rest api

Nodar Vardiashvili
Contributor
October 13, 2023

Hi,

I am trying to get audit logs via jira automation.

 

 

but i get error "401"

when i tried from postman with same rest api and token its workingPicture 1.png

2 answers

0 votes
Rudy Holtkamp
Community Champion
October 13, 2023

Hi @Nodar Vardiashvili ,

You have the wrong end point version, use version 2 instead of 3, like:

GET /rest/api/2/auditing/record

Cheers,

Rudy

0 votes
Ivan Lima
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.
October 13, 2023

The 401 error typically means authentication/network access-related issues. It can be credentials, headers, encoding, etc. Have a look at https://community.atlassian.com/t5/Jira-articles/Automation-for-Jira-Send-web-request-using-Jira-REST-API/ba-p/1443828, which should help you to get this working. Make sure you have correctly base64 encoded; that typically does the trick.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events