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.
I'd like to query the API for events such as:
user created a repo, user deleted protected branch, used pushed code etc'
I know there are webhooks for that, but i'd like to audit the history as well.
Hello @Yaron Avital ,
Welcome to Atlassian Community!
In regards to your question about exporting the Audit Log, if you mean exporting the Audit Log you see in the Bitbucket UI, we have answered this question in a previous post :
However, some of the events you mentioned such as "a branch was deleted" or "an user pushed a code to your repository" are currently not available in the Audit Logs. The good news is that we already have a feature request to add additional information to the Audit Log, including the events you have mentioned. You can access that feature request using the following link :
I would suggest you to add your vote there, since this helps both developers and product managers to understand the interest. Also, make sure you add yourself as a watcher in case you want to receive first-hand updates from that ticket. Please note that all features are implemented with this policy in mind: https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html
Hope that helps! In case you have any questions, please let me know!
Thank you, @Yaron Avital .
Kind regards,
Patrik S.
Thank you very much Patrik,
I'm afraid the answer above does not use the API (Rest\GraphQL), it seems to be scraping the Web UI and since i'm working with a Token, it's not applicable to my case.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Yaron Avital ,
I'm sorry to hear that the script does not apply to your case, and it's indeed exporting directly from the UI HTML.
In this case, I'm afraid there's not currently an endpoint available in our public API to get the Audit Logs. We have the feature request below to implement it, though :
You can vote for it and keep a watch to receive an update whenever there's any progress in its implementation.
If you have any further questions, feel free to ask.
Thank you, @Yaron Avital .
Kind regards,
Patrik S
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.