Is there is a way to get Commits by datetime In bitbucket? - bitbucket

Is it possible to get commits on Bitbucket by datetime filter using their REST API v1.0 ? I read the entire documentation of the Bitbucket API, but I couldn't find anything related. I'm asking perhaps I did miss something. Thank you!
API I am using to get Commits from bitbucket /rest/api/1.0/projects/{0}/repos/{1}/commits
BitBucket API Document

Looking at their docs you can apply filtering but it's not very clear.
https://developer.atlassian.com/bitbucket/api/2/reference/meta/filtering
You can apply filtering such as
updated_on <= 2015-03-04

Related

Using the BitBucket 2.0 API, how can I query commits from a specific user/author?

I'm looking to fetch all repo commits from a specific user/author and I can't quite get my head around the filtering documentation from Atlassian.
Entering this in my browser (with the placeholders changed for my project) lists out 30 items from my project.
https://api.bitbucket.org/2.0/repositories/{workspace}/{repo_slug}/commits
But I want it to list out only the commits authored by myself. I've tried all sorts or variations like:
.../commits?q=reviewers.nickname+"marknotton"
.../commits?q=user+%3D+"marknotton"
.../commits?author="marknotton"
Every variations just returns the same results. My url params are ignored, presumably because they are invalid. This could just be a silly syntax issue? Are there any examples I could refer to for help?
https://api.bitbucket.org/2.0/repositories/{workspace}/{repo_slug}/commits?state=merged&username.1=marknotton&role.1=AUTHOR

Jira Restful api to get any completed sprint Comitted and delivered data

I am writing a Java command like program to fetch Scrum information using Jira Rest API. I am not seeing any restful api to find a given completed sprint Committed and Delivered Story points or velocity chart information.
Can anyone help me out with what service I have to call to get it ?
I am using a raw rest call using basic authentication.
Unfortunately the answer varies for the Jira installation type
Jira Cloud
There's no direct way to get data about a sprint through the api, but I believe POST /rest/api/3/expression/eval would be your best option. From there you could find all the issues from your intended sprint with a JQL like Sprint=4, and then tally the story points. It's not perfect, but the best I'm aware of.
Jira Server/Data Center
Based on your version you may have to take the same approach as for Cloud, however some older versions of Jira have the Agile API which would probably speed things along

Subscribe to Jira search filter using jira Rest API

I have created a Jira search filter, using this request:
POST /rest/api/2/filter
This worked pretty well. Now after I created the filter, I want to get automatically subscribed to it.
Is there a way to do it with the REST API? Or is the only possible way to do this manually?
I already found this in the documentation: https://docs.atlassian.com/software/jira/docs/api/REST/7.4.1/#api/2/filter-createFilter
There, I found the "subscriptions" property, but I can't seem to figure out how exactly I have to write this, to get the correct syntax.
Thanks.
There is a JIRA Feature Request that is still being considered for this to be implemented. Please take a look at this for more details.
For now, all we can do is Fetch or Create Filters using the JIRA ReST APIs but editing the subscriptions should be manual tasks.
Please take a look at the following Atlassian Question which confirms the same.
Details as provided in this Question:
You can do a GET to see the filter subscriptions values you have via:
GET /rest/api/2/filter/favourite?expand=subscriptions
Hope this helps!

Resolved by field in JIRA

I need to search records in JIRA by using jira key. I am able to search issues but I have to do one more task that is to find out resolved by and resolved date. I had did lots of goggling but did not find content which satisfied me.
I really appreciate to help me to solve out this problem.
Thanks,
You could do this with a calculated field using Script Runner to extract the information from the Issue History tab. Not sure how good the search is using that approach. Alternatively you can use the REST API and a script to scan issues, but that's probably too slow.
Finally I am able to solve out this problem by traversing history data. I used json call to pick history data on basis of jira key then I converted that history data into typed history collection and started looking for Resolved token. When I got Resolved token in history then I picked the assigned name. By this way I am able to solve out this problem.
Thanks for your support.

How to Read Bitbucket Wiki as RSS?

I know that Bitbucket offers RSS, but it only gives you the commits feed. As the wiki itself is a repository, there must be an easy way to monitor changes of the wiki from a news reader. Any clue?
Since there is nothing about it in documentation I don't think it is possible.

Resources