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 to view all merged pull requests in bitbucket for a specified user?

I would like to view my merged pull request history in Bitbucket.

How do I query Bitbucket to show me only those merged pull requests where I am the author?

2 answers

1 accepted

3 votes
Answer accepted

Hi Tony,

 

In the user interface, for each repository, you can check the pull requests for that repository and filter by author and status.

 

If you are looking for pull requests across multiple repositories, you can try the All Pull Requests add on. However, this add on does not allow to filter by user and will display the pull requests for every author.

 

The /rest/api/1.0/dashboard/pull-requests REST API allows more sophisticated filtering. From the endpoint documentation:

Retrieve a page of pull requests where the current authenticated user is involved as either a reviewer, author or a participant. The request may be filtered by pull request state, role or participant status.

Cheers,

Caterina - Atlassian

Oh, I see how to do it per repository. That will do for my purposes.

Thanks for your advice.

Tony

Great Tony! Happy to help!

@Caterina Curti (Kate) , the "All Pull Requests" add-on seems to be discontinued. Is there any support to be expected from Atlassian on this functionality?

Like # people like this

I also would like to see the history of all PRs over the multiples repos under a project.

A couple of use cases:

#1 Not rarely a new feature of a system has commits, hence PRs, in different repos. For example, the front-end and one or more micro-services in the back-end. Being able to see PRs from multiple repos, possibly filtering by some attribute such as  words in the PR's title and description, can help track what was approved/merged and when.

#2 Derived from #1, if we need to track a bug introduced by a given merge in a repo, I'd like to find the related PRs merged on other repos 

#3 Find all PRs a given team member (possibly myself) has been assigned, approved, rejected, etc... over multiple repos.

Like # people like this
0 votes

You can check out this blog post https://stiltsoft.com/blog/2020/11/how-to-export-commit-and-pull-request-data-from-bitbucket-to-csv/ 

It describes different ways of exporting engineering data to CSV for further processing and organization.

You can also check out Awesome Graphs for Bitbucket if you need to retrieve and export commit and pull request data to CSV on global, project, repository, and user levels, using the dedicated resources. 

Suggest an answer

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

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,762 views 10 16
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