REST API for Pull Request Data

{
    "values": [
        {
            "id": 108,
            "title": "Release v2.3",
            "state": "MERGED",
            "closed": true,
            "author": {
                "displayName": "Jane Smith",
                "uuid": "{75aaf68d-117a-4d99-8a46-0273fe4b1032}"
            },
            "destination": {
                "branch": {
                    "name": "main"
                },
                "repository": {
                    "name": "awesome-repo"
                }
            },
            "createdDate": "2024-10-08T08:33:11.595774+00:00",
            "closedDate": "2024-10-10T11:52:07.637619+00:00",
            "updatedDate": "2024-10-10T11:52:07.637619+00:00",
            "commentCount": 6,
            "taskCount": 6
        }
    ]
    "isLastPage": true,
    "start": 102,
    "size": 142, 
    "limit": 159
}
CODE

In this release, we’re excited to introduce the Awesome Graphs REST API – your new way to access detailed and aggregated pull request data in Bitbucket Cloud. With the API, you can retrieve key PR attributes such as:

  • Identifiers: PR ID and title
  • State of the pull request
  • Author details: ID and display name
  • Dates: created, closed, and last updated
  • Destination repository and branch
  • Activity metrics: number of comments and tasks

To start using the REST API:

  1. Install Awesome Graphs on your Bitbucket Cloud workspace.
  2. Generate an authentication token in the app's settings.

  3. Follow the REST API documentation for the full list of available endpoints and parameters.