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

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

Avatar

1 badge earned

Collect

Participate in fun challenges

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

Challenges
Coins

Gift kudos to your peers

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

Recognition
Ribbon

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!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,456,615
Community Members
 
Community Events
176
Community Groups

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

0 votes
Vishwas Rising Star Jan 06, 2022

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

Vishwas Rising Star Jan 07, 2022

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 

Vishwas Rising Star Jan 10, 2022

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

Atlassian Community Events