I want to get the data regarding all the pull requests made after a particular date. I have the api for that. I'm able to fetch data by giving state and limit. But I need to fetch only the pull requests made on or after a particular date.
This is the way i tried to get for the date '2019-08-03' :
Sorry I'm confused because you labeled your question with bitbucket-cloud whereas the API you referred to looks more like Bitbucket Server's.
I'm not sure if filtering by creation date is possible with Bitbucket Server. It can be done with Bitbucket Cloud though. Please clarify which product you're using.
Cheers,
Daniil
Hi @Daniil Penkin ,
I'm using BitBucket server only. I need to filter the pull requests made on or after a particular date from the rest api.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Govind Haridas,
I double checked with Bitbucket Server team: unfortunately, pull requests REST API doesn't support filtering PRs by creation date.
The only date-related parameter is order, but it works with last update date, not creation date.
Cheers,
Daniil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Daniil,
Can you tell me the parameter name through which I can get pull requests created after a certain date in Bitbucket Cloud? Requesting you to please reply to this query on urgent basis as we are stuck in our work.
Regards,
Felis Paul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @felis paul ,
You can use BBQL query for that (see Filtering), something like this:
https://api.bitbucket.org/2.0/repositories/atlassian/atlaskit-mk-2/pullrequests?q=created_on%3C2017-08-25T00:00:00.000Z
Cheers,
Daniil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks a lot Daniil for your quick response. Really appreciate it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.