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,300,574
Community Members
 
Community Events
165
Community Groups

reviewers not found when requesting pullrequest

hi there,

when i tried to get info of pullrequest using below url, i cannot get reviewer info.

/repositories/team/repository/pullrequests

"

 

2021-10-12 15-43-17 的屏幕截图.png

1 answer

0 votes
Caroline R Atlassian Team Oct 14, 2021

Hi, @Jin Wu! Thank you for reaching out to Atlassian Community!

In order to see the reviewers of a Pull Request, you can run the following request:

/2.0/repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/activity

You can get a list of PRs (including their IDs) from the endpoint you already ran. So for example, in his screenshot, we see the PR ID 4039 (near the top). So you need to then use that ID and run the following to get the reviewers section: 

/2.0/repositories/{workspace}/{repo_slug}/pullrequests/4039/activity

You can find more information about this endpoint at the following link:

Please let me know how it goes and don't hesitate to ask for any further information if needed.

Kind regards,
Caroline

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,262 views 2 9
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