Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Not able to fetch Audit Logs using JRJC

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

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you