Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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 .

3 answers

1 vote
Jega May 25, 2021

bbs_cropped_create_branch.png

is there api which exposes this log ?

0 votes
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.

0 votes
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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events