Extract Fisheye's commit calendar data
Asked by EJ Victoria:

Hi Guys,

Is it possible to extract Fisheye's commit calendar data into csv or excel? This is by repository or by user I mean.

Thanks,

EJ


Answers:
author: Piotr Swiecicki
body: Hi @EJ Victoria,

On both repository activity stream page (e.g. <https://fisheye1.atlassian.com/changelog/firebird>) and user activity stream pge (e.g. <https://fisheye1.atlassian.com/committer/firebird/alexpotapchenko>) click on the "Tools" button in the top right corner. There is a "RSS feed" link which would generate RSS (XML based) document with the recent activity. Just ensure you filter commits only if you are interested in Commit data but not review data, e.g.:

Activity+firebird%2F+2015-01-13+09-57-47.png

Alternatively you can use FishEye's REST API, e.g. <https://docs.atlassian.com/fisheye-crucible/latest/wadl/fisheye.html#rest-service-fe:changeset-v1:listChangesets> to list changesets matching given criteria - committed by particular committer and/or limited to particular repository only. You can retrieve the data in both XML and JSON format.

Hope that helps,  
Piotr  
[](https://community.atlassian.com/t5/Fisheye-Crucible-questions/Extract-Fisheye-s-commit-calendar-data/qaq-p/202351?attachment-id=1900){#link_115b6c42484108}  
[](/tnckb94959/attachments/tnckb94959/fisheye-crucible-questions/2647/1/Activity+firebird%252F+2015-01-13+09-57-47.png){#display_115b6c42484108_0}

comments: author: EJ Victoria
body: Hi Piotr,

The data that I'm interested at is:

commit.png

Any recommendation as to how to get this data (commit count per month)?  
[](https://community.atlassian.com/t5/Fisheye-Crucible-questions/Extract-Fisheye-s-commit-calendar-data/qaq-p/202351?attachment-id=1380){#link_115b6c489e1cda}  
[](/tnckb94959/attachments/tnckb94959/fisheye-crucible-questions/2648/1/commit.png){#display_115b6c489e1cda_0}


author: Piotr Swiecicki
body: There is a way to retrieve this data, but bear in mind this is not a part of public API, so I can't guarantee it won't change in the future.You can request it using the following links: \* [https://fisheye1.atlassian.com/fe/commitCalendar.do?context=changelog\&repname=jptools\&outputtype=html](https://fisheye1.atlassian.com/fe/commitCalendar.do?context=changelog&repname=jptools&outputtype=html) \* [https://fisheye1.atlassian.com/fe/commitCalendar.do?context=changelog\&repname=jptools\&outputtype=json](https://fisheye1.atlassian.com/fe/commitCalendar.do?context=changelog&repname=jptools&outputtype=json)in html and json format respectively. Hope that helps, Piotr


author: EJ Victoria
body: This seems to work for us for checking the commit calendar for a user:\[FISHEYE\]/fe/commitCalendar.do?context=user\&username=user1\&outputtype=html\[FISHEYE\]/fe/commitCalendar.do?context=user\&username=user1\&outputtype=jsonThanks for the help.


author: EJ Victoria
body: Hmmm now experimenting if this can also be applied for groups, like:\[FISHEYE\]/fe/commitCalendar.do?context=group\&groupname=group1\&outputtype=htmlIs there a way for this?


author: Piotr Swiecicki
body: I am afraid this is not possible directly. You may want to use REST API <https://docs.atlassian.com/fisheye-crucible/latest/wadl/fecru.html#rest-service-fecru:admin:groups:name:users> to retrieve names of users who belong to particular group though, then iterate and request commit calendar data for each user and add it up.


Tags: fisheye-crucible-administration