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,467,291
Community Members
 
Community Events
177
Community Groups

How do I get all the PRs I've approved or reviewed?

How do I get all the PRs I've approved or reviewed given a user and/or duration?

Thanks

2 answers

2 accepted

0 votes
Answer accepted

I will be closing this BCLOUD since an endpoint with this capability exists, so I thought I'd add the note here too.

 

Specifically, the pullrequests endpoint (the second one provided above) supports querying, which supports "reviewers.uuid" as well as "author.uuid".

To get a list of open PRs authored or reviewed by a user with user ID equal to 1234567, the API endpoint would look something like this:

 

/2.0/repositories/{workspace}/{repo_slug}/pullrequests?

q=state="OPEN" AND (reviewers.uuid="{12345}" OR author.uuid="{12345}")

0 votes
Answer accepted
Caroline R Atlassian Team Mar 02, 2022

Hi, @Daniel Fenn, thank you for reaching out to Atlassian Community.

Currently, we don't have a specific endpoint to retrieve all the PRs we have approved or reviewed. However, if you want to check all the Pull Requests you have reviewed in a specific repository, you can follow these steps: 

  • Access the repository

  • Go to Pull Requests

  • Select the options 'I’m reviewing' and 'All':

 PR.png

We do have an endpoint that returns all pull requests authored by the specified user and another one that returns all pull requests on the specified repository as you can see here:

So you could create a script to verify the pull requests from all the repos that you have access to and build a list of any PRs where you were an approver/reviewer if you need this information.

In any case, I went ahead and created a feature request to add this endpoint as you can see here:

I would suggest that you add your vote there (by selecting the Vote for this issue link) as the number of votes helps the development team and product managers better understand the demand for new features. 

You are more than welcome to leave any feedback, and you can also add yourself as a watcher (by selecting the Start watching this issue link) if you'd like to get notified via email on updates.

Implementation of new features is done as per our policy here and any updates will be posted in the feature request. 

Kind regards,
Caroline

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events