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.
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
Hello,
The below APIs did helped. thought to update you.
/rest/api/1.0/projects
REST Resources Provided By: Bitbucket Server - REST/rest/api/1.0/projects/{projectKey}/repos
REST Resources Provided By: Bitbucket Server - REST/rest/api/1.0/projects/{projectKey}/repos/{repositorySlug}/pull-requests
REST Resources Provided By: Bitbucket Server - RESTThank You very much for your guidance in this regard.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.