Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Bitbucket REST Api: How can I filter and sort API Object by created_on date ?

ixb January 10, 2020

Hello,

I am trying to filter all pipelines that got created after a specific date.

When i do 

https://api.bitbucket.org/2.0/repositories/{workspace}/{repo_slug}/pipelines/?sort=-created_on&created_on=2020-01-03T18:28:27.943Z

I get a result

I want to fetch only the items with created_on >= 2020-01-03T18:28:27.943Z

https://api.bitbucket.org/2.0/repositories/{workspace}/{repo_slug}/pipelines/?sort=-created_on&created_on>=2020-01-03T18:28:27.943Z

I get no result. That is not correct.

How do i filter with the created_on date?

Thanks,

1 answer

0 votes
Lenin Raj
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 12, 2020
ixb January 12, 2020

No luck.

I get no result when i remove the Z.

When i remove the Z and do created_on = 2020-01-03T18:28:27.943

I get the error below

{

    "code": 500,

    "message": "There was an error processing your request. It has been logged (ID 7e3820543aac8ef8)."

}

Like Shailendra Singh likes this
Shailendra Singh
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!
November 28, 2022

Hello ixb / Lenin Raj,

I am also facing the same problem, any luck on this? how can we filter pipelines using created_on>=2020-01-03 i.e. (date or datetime) ? 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events