The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

JRJC not able to fetch AuditLogs

Rahul Khot
December 6, 2021

Hi JIRA Team,

We are trying to retrieve Audit Logs using JRJC library
Please find below our code :

1. Create Rest CLient Object :
JiraRestClient restClient = new AsynchronousJiraRestClientFactory().createWithBasicHttpAuthentication(
new URI("******"), "****", "****");

2. Get Audit Records :
AuditRecordsData auditrecords = restClient.getAuditRestClient().getAuditRecords(new AuditRecordSearchInput(0, 1000, "", now, someDaysAgo)).claim();
for (AuditRecord auditRecord : auditrecords.getRecords()) {
System.out.println("auditRecord : " + auditRecord.getSummary());
}

It does not retrieve the Audit Logs Entries.
But it does fetch the total number of AuditRecords.
Please advise if we are missing anything here.

Thanks
Rahul

0 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

TAGS
AUG Leaders

Atlassian Community Events