Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Bitbucket branch creation date


I am trying to find a way to get all the older branches from bitbucket for a particular project repository slug. There doesn't seem to be anything in the returned json from the api call to suggest when the branch was created or last updated.

I am using:


This does not return any date/time info at all. How would I know how old a branch is?




3 answers

For anyone that might stumble upon this. If you have admin on the repo, you can go to the Push Log and choose the branch name to get the push history. The first entry is the creation date in bitbcket. 

Note that this might be different than the actual date the branch was created locally which can be retrieved using git commands.

I'm also trying the same want to get all the branches from bitbucket for a particular project repository slug but not receiving branch creation details in JSON response.

Any suggestion ? How this can be achieve ?

0 votes
Ben Stuart
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Jan 24, 2018

Hey Nasir, 

Unfortunately Bitbucket doesn't store the date that a branch is created. You may be able to find this this using some git commands. Checkout this StackOverflow article that may help.

Hello @Ben Stuart ,

Can you tell me then how we can check whether the branch is recreated with same name or not. As all the commands are showing the commit info instead of branch creation date. Is there any possibility to check whether the branch is deleted during pull request or not.

Bhakti Prasad Panda

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events