Skip to content

Instantly share code, notes, and snippets.



Last active Oct 13, 2015
What would you like to do?
Integrate Harvest Platform into redmine
<div style="position:absolute;left:1230px;" class="harvest-timer" data-project='{"id":"<%= %>", "name": "<%=j %>"}' data-item='{"id": "<%= %>", "name":"<%=j @issue.subject %>"'></div>
(function() {
window._harvestPlatformConfig = {
"applicationName": "Redmine",
"permalink": "https://YOUR.REDMINE.DOMAIN/issues/%ITEM_ID%"
var s = document.createElement('script');
s.src = '//';
s.async = true;
var ph = document.getElementsByTagName('script')[0];
ph.parentNode.insertBefore(s, ph);

This comment has been minimized.

Copy link
Owner Author

@jonasvp jonasvp commented Nov 28, 2012

Add this line to app/views/issues/show.html.erb, preferably before the <h2> tag with the issue_heading. Done!


This comment has been minimized.

Copy link

@vphantom vphantom commented Dec 17, 2012

Thank you for sharing this!

Strangely I couldn't find an official reference to this API on Harvest's web site, however I did find what seems like an official document which explains how they made their Trello and Basecamp extensions for Chrome:

I figure that's likely what you used as a reference too.


This comment has been minimized.

Copy link

@tjschuck tjschuck commented Nov 5, 2014

@vphantom I realize you commented almost 2 years ago, but figured I'd leave a note for anyone finding this now :)

Here's the page that explains the Harvest Platform used here:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment