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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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 to get all repository in all projects in bitbucket using bitbucket server API?

What i want to do is calculate mean time to approval. 
Simply put; how much time it takes for one PR to get approved since it was opened. 

Lets say I have 50 projects and in each project has 5 repo. What i am doing right now is:

  1. Get list of all projects (1 API call)
  2. Get list of all repo in each project (recursive: 50*5 = 250 API calls)
  3. Get pull request history for each repo and in each project (recursive: 250)

As you can see there is alot of API calls being made and this will increase my a multiple ratio as repos and projects increases. 

My question is:

  1. Is there a way of getting like whole bitbucket pull request history?
  2. Is there a way of getting all the repo in all over projects with one call? 
  3. Is there a better way of achieving what i want in some other way?

0 answers

Suggest an answer

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

Master the art of thinking big, working small: A conversation John Cutler

Hello all! It has been 20 years since the agile manifesto was introduced, and closer to 40 years since software development began moving away from a waterfall-type approach. While many teams have ...

128 views 7 7
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