Contents

Get Number of Pull Requests

Returns number of pull requests.

Role

Administrator
Normal User

Method

GET

URL

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

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)
NumberRelated issue 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

{
    "count": 10
}