It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Bitbucket branch creation date

Nasir Amin May 24, 2017

Hi,

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:

http://localhost/bitbucket/rest/api/latest/projects/{projectId}/repos/{repo}/branches?details=true

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

Regards,

 

Nas

1 answer

0 votes
Ben Stuart Atlassian Team 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.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder

...ipe.sh :  #!/bin/bash source "$(dirname "$0")/common.sh" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

3,236 views 1 22
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you