Contents

Get Pull Request List

Returns list of pull requests.

Role

Administrator
Normal User

Method

GET

URL

/api/v2/projects/:projectIdOrKey/git/repositories/:repoIdOrName/pullRequests

URL parameters

Parameter NameTypeDescription
projectIdOrKeyStringProject ID or Project Key
repoIdOrNameStringRepository ID or Repository name

Query parameters

Parameter NameTypeDescription
statusId[]
(Multiple)
NumberStatus ID
assigneeId[]
(Multiple)
NumberAssignee ID
issueId[]
(Multiple)
NumberIssue ID
createdUserId[]
(Multiple)
NumberCreated User ID
offsetNumber
countNumbernumber of records to retrieve(1-100) default=20

Response example

Status Line / Response Header

HTTP/1.1 200 OK
Content-Type:application/json;charset=utf-8

Response Body

[
    {
        "id": 2,
        "projectId": 3,
        "repositoryId": 5,
        "number": 1,
        "summary": "test",
        "description": "test data",
        "base": "master",
        "branch": "develop",
        "status": {
            "id": 1,
            "name": "Open"
        },
        "assignee": {
            "id": 5,
            "userId": "testuser2",
            "name": "testuser2",
            "roleType": 1,
            "lang": null,
            "nulabAccount": {
                "nulabId": "J884YBYbiDBZcN4tj7rzcKcv8EYhekYcGfGtZ5oo7fCiGPnCjM",
                "name": "testuser2",
                "uniqueId": "testuser2"
            },
            "mailAddress": "testuser2@nulab.test",
            "lastLoginTime": "2022-09-01T06:35:39Z"
        },
        "issue": {
            "id": 31
        },
        "baseCommit": null,
        "branchCommit": null,
        "mergeCommit": null,
        "closeAt": null,
        "mergeAt": null,
        "createdUser":{
            "id": 1,
            "userId": "admin",
            "name": "admin",
            "roleType": 1,
            "lang": "ja",
            "nulabAccount": {
                "nulabId": "Prm9ZD9DQD5snNWcSYSwZiQoA9WFBUEa2ySznrSnSQRhdC2X8G",
                "name": "admin",
                "uniqueId": "admin"
            },
            "mailAddress": "eguchi@nulab.example",
            "lastLoginTime": "2022-09-01T06:35:39Z"
        },
        "created": "2015-04-23T03:04:14Z",
        "updatedUser": {
            "id": 1,
            "userId": "admin",
            "name": "admin",
            "roleType": 1,
            "lang": "ja",
            "nulabAccount": {
                "nulabId": "Prm9ZD9DQD5snNWcSYSwZiQoA9WFBUEa2ySznrSnSQRhdC2X8G",
                "name": "admin",
                "uniqueId": "admin"
            },
            "mailAddress": "eguchi@nulab.example",
            "lastLoginTime": "2022-09-01T06:35:39Z"
        },
        "updated":"2015-04-23T03:04:14Z"
    },
    // ...
]