Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

reviewers not found when requesting pullrequest

Jin Wu
Contributor
October 12, 2021

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
Atlassian Team members are employees working across the company in a wide variety of roles.
October 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
atlassian, bitbucket, ci/cd workflows, scale ci cd, bitbucket webinar, devops pipeline, continuous integration, continuous delivery, atlassian learning, software automation, developer tools, build and deploy, pipeline optimization, atlassian community

Scale CI/CD workflows faster with Bitbucket Pipelines 🪣

Join this webinar on June 25/26th to learn how to build secure CI/CD workflows using Bitbucket Pipelines and get tips from our own engineers on how to speed up builds and operate at scale.

Register today
AUG Leaders

Atlassian Community Events