How to find the users and related commits on Bitbucket Data Center
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
A way to get a list of commits and their users in the application.
Environment
Bitbucket Server/Data Center 7+
Solution
In Bitbucket Server 7.1 Atlassian shipped Push log feature that allows admins to see the history of all push events in a repository, including the "Published By" info that shows the user who performed the commit.
In addition to the above, a list of all commits in a repository can be obtained using this API method and extract the author information for each commit. If all the commits of all the users are needed, please iterate over the projects, then across all the repositories in each of the projects, and then get the commits in each repo using the same method.
Was this helpful?