Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
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

How do i get the list of all projects and repositories from Bitbucket on premises server

How do i get the list of all projects and repositories from Bitbucket on premises server

1 answer

Hey @Shruti S G 

We can get this info from Database and via rest API too.

Check out this doc on how to get the list from DB https://confluence.atlassian.com/bitbucketserverkb/how-to-obtain-a-list-of-all-projects-and-repositories-from-bitbucket-database-975027747.html

Regards,

Vishwas

Thank you Vishwas. Could you share me doc on how to get that through rest API

Hey @Shruti S G 

Couldn't get the exact query or API code to retrieve the data at once, you may have to start looking at the Bitbucket REST API document and build the code here https://docs.atlassian.com/bitbucket-server/rest/5.16.0/bitbucket-rest.html

In case if you have Scriptrunner plugin in bitbucket there is a ready made code available here to get list of projects along with all their repositories and bonus too(size of each repo) https://scriptrunner.adaptavist.com/5.4.5/bitbucket/ScriptConsole.html#_list_all_repository_sizes_by_project

Hope this helps !!

Regards,

Vishwas

Like Shruti S G likes this

Thanks for the details. I will try this 

Hey @Shruti S G 

Please feel free to accept the answer in case it helped you for the purpose of community posterity :)

Regards,

Vishwas

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

📣 Calling Bitbucket Data Center customers to participate in research

Hi everyone, Are you Bitbucket DC customer? If so, we'd love to talk to you! Our team wants to dive deep to understand your long-term plans regarding Bitbucket DC and Atlassian Cloud. Do you plan...

190 views 2 4
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