Forums

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

Not able to fetch Audit Logs using JRJC

Rukshan Perera December 7, 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

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Atlassian Community Events