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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Bitbucket cloud api 2.0 - querying commits - how to filter on date?

Hi, I just can't seem to get the filter working where I only want commits returned after a specific date:

Here's a sample query I'm trying that doesn't filter properly:

https://api.bitbucket.org/2.0/repositories/jan_raszyk/fun-flowers-with-toggles/commits?q=date+%3E+2018-05-30

In the response, I clearly get commits after/before that date. For example, this is the last object in the above query (I removed content after : on several for readability)

{
"hash": "ed784a6917c7cb0afe60ed595ff7347630c92879",
"repository": {
"author": {
      "raw": "Jonathan Coe <jonathan.coe@flexionmobile.com>",
      "type": "author",
        " user": {
    "username": "jonathan-coe",
      "display_name": "Jonathan Coe",
      "account_id": "557058:1a4bf339-92ec-45c5-b644-5c8033f5b3a1",
     "links": {
       "self": {
"href": "https://api.bitbucket.org/2.0/users/jonathan-coe"
},
"summary": 
"parents": 
"date": "2015-11-26T15:36:27+00:00",
"message": "Improved logging in FlowerActivity\n",
"type": "commit"
}

1 answer

0 votes

Did you ever manage to solve this?

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

Powering DevOps with Bitbucket Server & Data Center

Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster   ! While we’re all excited about the new improvements to Bitbucket ...

1,869 views 0 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you