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
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.