Can Bitbucket REST API return pipelines in reverse-chronological order?

Jonah Philibert
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 3, 2022

Is it possible to call GET /2.0/repositories/{workspace}/{repo_slug}/pipelines/ so that the results are returned in reverse chronological order? For long-running pipelines, it's unworkable to have to retrieve every pipeline to find the latest few, so I was surprised the REST API docs made no mention of it.
It would be great to have this option, though alternately, the ability to filter which pipelines are returned would also serve a similar use. 

1 answer

1 accepted

0 votes
Answer accepted
Jonah Philibert
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 3, 2022

though the docs do not mention it for this particular endpoint, it does accept filtering
https://developer.atlassian.com/cloud/bitbucket/rest/intro/#filtering

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events