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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,466,062
Community Members
 
Community Events
176
Community Groups

How can I use date filters in bitbucket commits and pipelines REST APIs

Hi ,
I am using  bitbucket commits and pipelines REST APIs
I want to fetch only the commits that are created after a particular date
For that I used q filter as mentioned in documentation https://developer.atlassian.com/cloud/bitbucket/rest/intro/?utm_source=%2Fbitbucket%2Fapi%2F2%2Freference%2Fmeta%2Ffiltering&utm_medium=302#filtering

But it is not working.

Here is my query 
https://api.bitbucket.org/2.0/repositories/amanrajqentelli/opup/commits?q=date%3C%222017-01-01%2000:00%22

Could you please help me figure out how to use date filters in commits and pipelines?

1 answer

0 votes
Patrik S Atlassian Team Jul 14, 2022

Hello @Bhargavi Chanboina ,

Welcome to Atlassian Community!

I'm afraid that filtering is currently not available for the commits and pipelines endpoints, but we already have the feature requests below to implement that functionality :

I would suggest you to add your vote there, since this helps both developers and product managers to understand the interest. Also, make sure you add yourself as a watcher in case you want to receive first-hand updates from that ticket. Please note that all features are implemented with this policy in mind.

While this feature is not implemented, you can retrieve all pipelines or commits using the APIs and then use an external tool that filters JSON data, like jq, to filter the results.

Thank you, @Bhargavi Chanboina .

Kind regards,

Patrik S

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events