You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.
View groupJoin the community to find out what other Atlassian users are discussing, debating and creating.
I'm trying to query a repository for all the commits on a specific date. I believe I have formatted the q= parameter correctly....
https://api.bitbucket.org/2.0/repositories/<our name>/<repo name>/commits?q=date%3E%3D2017-10-05+AND+date%3C2017-10-06&page=1
(basically: date >= 2017-10-05 AND date < 2017-10-06)
however, this date criteria is being ignored all all commits are being returned.
After reading the support page, at: https://developer.atlassian.com/bitbucket/api/2/reference/meta/filtering
it seems like I'm doing thing correctly; but, what am I missing?
Hi Hise, looks like you might be missing some '+' signs. Also, you can try adding the "updated_on" like in the example provided on that article, so for you it would look like:
https://api.bitbucket.org/2.0/repositories/<our name>/<repo name>/commits?q=updated_on+%3E+%3D+2017-10-05+AND+updated_on+%3C+2017-10-06&page=1
Let us know if that worked for you!
Regards,
Ana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Here's sample of the commits json object that is returned.....
I want to return commits where "date" is a specific date. I've updated my call with the additional + signs you mentioned. The image below is the result of this call....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No, it's working I am getting, all data
I want data between two specify data
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.
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 ...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.