You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Having a really hard time with this one. I have a lot of experience with Atlassian's API, but this one has broke me. I have no issue getting the base call to work, but filtering against it just isnt working. Going off of this documentation: https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-audit-records/#api-group-audit-records
The call that I have working is the base found in the documentation. I was playing with Google App Scripts, but switched to Python. Base call looks like this
Hey Jordan!
I'm not sure what exactly information you want to get from audit log, but i managed to perform this filter in the audit log using this Endpoint:
As you should know {{now.minusdays(1).jiraDateTime.urlencode}}, will get the previous days that I want to read the log and &filter=Status will filter the log.
I noticed that you are using API v3 while I am using v2.
Just in case I did a test using the same endpoint, but with v3 > https://mycompany.atlassian.net/rest/api/3/auditing/record?filter=Status
And it worked fine too.
If it doesn't work for you, can you share more details of the information you want to extract and also your automation log
Hope this helps.
Fernando
Hey Fernando,
It was an issue of looking at the problem too long. Turns out the filter works just fine, but the total value always returns the total for your instance. I had to get the count of keys from the records specifically.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.