Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

is there a api to get push-log for a particular branch.

Jega May 25, 2021

I can see there is page where we can see the push-logs in bitbucket. 

https://confluence.atlassian.com/bitbucketserver0710/push-logs-1044105624.html?utm_campaign=in-app-help&utm_medium=in-app-help&utm_source=stash

 

is there any api to pull this log ? . this will be really helpful to find out who and when this branch got created .

2 comments

Jega May 25, 2021

bbs_cropped_create_branch.png

is there api which exposes this log ?

Like Nicholas Williams likes this
Christian Glockner
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 26, 2021

Hi,

You can use the Audit REST API (see https://docs.atlassian.com/bitbucket-server/rest/7.13.0/bitbucket-audit-rest.html#idp7) for this.

Cheers,

Christian

Premier Support Engineer

Atlassian

Nicholas Williams May 23, 2022

This comment does not appear correct. I've queried that API and it brings back audit results but no push log results. However, the ref-change-activities endpoint in the Core API brings back the push logs I was looking for: https://docs.atlassian.com/bitbucket-server/rest/7.21.0/bitbucket-rest.html#idp370.

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events