The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

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

TAGS
AUG Leaders

Atlassian Community Events