Forums

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

Bitbucket pipeline endpoint is not filtering data based on created_on filter.

Akash Litoriya
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!
August 28, 2025

I want to filter out the pipelines based on `created_on` field, but the api is returning all the pipelines instead of filtered out pipelines. I'm attaching the curl I'm using to fetch the filtered pipelines.


curl --location --globoff "https://api.bitbucket.org/2.0/repositories/<workspace>/<repo>/pipelines/?q=created_on>=\"2025-08-29T00:00:00\""

 

2 answers

0 votes
Saxea _Flowie_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 28, 2025

I'm afraid this is a know bug/limitation. See BCLOUD-14000.

0 votes
Akriti Sagar
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 28, 2025

Hi @Akash Litoriya,

The issue is with the query syntax in your API call. The Bitbucket 2.0 API requires filters to be wrapped in URL-encoded query strings. Your > and = operators need to be encoded, otherwise the API just ignores the filter.

Try this instead:
curl --location --globoff \
"https://api.bitbucket.org/2.0/repositories/<workspace>/<repo>/pipelines/?q=created_on%3E%3D%222025-08-29T00:00:00%22"

Here’s what changed:

  • > becomes %3E

  • = becomes %3D

  • Quotes around the timestamp are required and must be URL-encoded (%22).

This should correctly return only pipelines created on or after 2025-08-29T00:00:00.

If you still see unfiltered results, double-check that your repo actually has pipelines with created_on values after that date, since the filter won’t apply if there are none.

Akash Litoriya
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!
August 28, 2025

I tried the provided curl, still not getting the filtered data. There are pipeline in repository that are created after the date provided in the filter still getting all the pipelines in the response.

Saxea _Flowie_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 28, 2025

edit: posted as top level answer.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events