The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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)

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events