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

bitbucket pullrequests api is pulling limited information

Pavan_Nayakanti August 9, 2021

Am in the process of creating a visualization to reflect the aging pull requests waiting for approvals.

In this process am finding that "API reflects only those pull requests information associated with the credentials am using for triggering API".
I mean, if i use my credentials of user1 to trigger the API, it returns the pull requests created by only the user1 despite it has admin privileges over the bitbucket-dev instance.
https://bitbucket-dev.xxxxxxxxxxx.local/rest/api/1.0/dashboard/pull-requests?state=OPEN&participantStatus=UNAPPROVED
So, am exploring ways to make the API to return all the Pull requests irrespective whoever is created.
Please let me know in case of any inputs. Thank You.

1 answer

0 votes
Ulrich Kuhnhardt _IzymesCo_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
August 9, 2021

Hi, I assume this is a developer question. You may get more help in the actual Bitbucket (server) developer community here: https://community.developer.atlassian.com/c/bitbucket-development/bitbucket-server/14

While the /dashboard endpoint returns the user specific set of pull requests across the instance - the /project/repo endpoint [1] gives you all PRs of that repository.

Since both endpoints don't quite cut the mustard when you need an overview of all PRs across the instance we have developed Organizr for Bitbucket which exposes a REST API that returns all pull requests that match an optional query like "q=state=open" etc.

Let me know if I can help you further.

 

[1] https://docs.atlassian.com/bitbucket-server/rest/7.14.0/bitbucket-rest.html#idp293

Pavan_Nayakanti August 11, 2021

Hello,

The below APIs did helped. thought to update you.

Thank You very much for your guidance in this regard.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events