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

How do I get pull request reviewers without sending additional requests?

Jonathan Zavialov
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 25, 2024

I am sending a request to this endpoint:

https://api.bitbucket.org/2.0/repositories/{workspace}/{repo_slug}/pullrequests 

to get a list of pull requests for a repository. Each pull request in this list does not contain the reviewers array. The docs say "For performance reasons, the API only includes this list on a pull request's self URL". Is there any way to modify my request so it returns this list, so I can avoid having to send additional requests? 

1 answer

1 accepted

1 vote
Answer accepted
Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 26, 2024

Hi Jonathan,

Unfortunately, this is not possible - you would need to query each individual PR for this information.

We have an active feature request ticket logged with our developers to implement this, however. Please feel free to Watch this to receive future updates related to it and Vote for it to improve its visibility with regard to customer demand:

Cheers!

- Ben (Bitbucket Cloud Support)

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events