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\""
I'm afraid this is a know bug/limitation. See BCLOUD-14000.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
edit: posted as top level answer.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.