You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
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
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 ?
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
Regards
Bhakti Prasad Panda
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.