This widget (and job) pulls ticket counts per priority from Redmine for a list of projects
Add faraday to your Gemfile:
gem 'faraday'
To use this widget, copy redmine_ticket_counts.html, redmine_ticket_counts.coffee, and redmine_ticket_counts.scss into the /widgets/redmine_ticket_counts folder.
Edit redmine.rb, replacing REDMINE_URL with the URL of your Redmine instance and REDMINE_KEY with your Redmine API key (See below for info on the Redmine API key). Change the projects hash to reflect your setup, associating a widget ID with a particular project ID in Redmine.
Once you've edited redmine.rb, put your edited version in the /jobs folder of you Dashing instance.
To include the widget in a dashboard, add a snippet such as:
<li data-row="1" data-col="1" data-sizex="1" data-sizey="1">
<div data-id="redmine-counts-foo" data-view="RedmineTicketCounts" data-title="Foo Tickets"></div>
</li>
to your dashboard layout file.
You will need to have admin access to Redmine.
Ensure that you have enabled REST API access on your Redmine instance. To check, go to Administration -> Settings, click on the Authentication tab, and check that Enable REST web service is checked.
Go to My account, and look at the right side of the page, where you can find your API key; place this value in REDMINE_KEY in redmine.rb.
Works great - thank you. Is it possible to integrate ticket status - we are only interested to see the new tickets, that there is no action , eg "status":{"id":1,"name":"New"} ?
Thank you in advance.
Regards