Dashing widget to display the number of cases in your Desk.com account. This widget uses Desk.com’s API and some code from the beautiful Hotness Widget by rowanu.
This widget requires oauth to authenticate with the Desk.com API, so you’ll probably have to add the following to your gemfile:
gem 'oauth'
Then run bundle install
to make everything work perfectly!
To install this widget, run this command form your Dashing directory:
dashing install 8927307
To include this widget in your dashboard, add the following snippet of code to the dashboard layout file:
<li data-row="1" data-col="1" data-sizex="1" data-sizey="1">
<div data-id="desk_cases" data-view="Desk" data-low="10" data-high="70" data-title="Unsolved cases"></div>
</li>
You may want to change the title of the widget, as well as the low and high values (more on this a bit further down).
Obviously, you must add your Desk.com API credentials and the URI of your site to desk.rb
for this widget to work. There are a few additional settings you may want to configure.
Cases will by default be fetched from Desk.com every 5 minutes, but this may also be changed.
Personally, I only need to see the number of new and open cases not currently assigned to an agent. To change this, edit search_params
. Read more about the search possibilities on this site: API:Cases:Fields
Depending on your usage, you may want to change what is defined as a low and high number of cases. To do this, change the values of data-low
and data-high
in the snippet above.
The default color scheme is advantage scale? by turtlejoy.
You may of course change the colors as you wish by editing desk.scss
.
I hope to some day extend this widget to fetch more than just the total count of cases. Contributions are welcome!