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

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

Shawn Miller August 28, 2018

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
Adam Goldschmidt May 11, 2020

Did you ever manage to solve this?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events