-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Low
-
Affects Version/s: None
-
Component/s: API - REST, Documentation (Developer)
-
None
For the REST end-point:
/rest/api/1.0/projects/{projectKey}/repos/{repositorySlug}/pull-requests?direction&at&state&order
the REST documentation describes the state query parameter as:
(optional) a specific state to filter pull requests by.
When in actual fact, the REST end-point defaults to only returning OPEN pull requests if the state parameter is not supplied.
GET /projects/{projectKey}/repos/{repositorySlug}/pull-requests?state=DECLINED
Will return declined pull requests.
GET /projects/{projectKey}/repos/{repositorySlug}/pull-requests?state=MERGED
Will return merged pull requests.