Simple Dashing widget that shows YouTrack REST API data.
nokogiri
gem is required so add gem 'nokogiri'
to your Gemfile
.
Please refer to Official YouTrack REST API Reference in order to get all that you need from YouTrack.
In my case I'm getting the list of unresolved issues about upcoming employees. Just copy your filter to :filter
parameter in response
in youtrack.rb
.
Don't forget to change the fields that you want to obtain in this section:
summary = xmlfeed.xpath("//field[@name='summary']/value/text()")
issue_number = xmlfeed.xpath("//field[@name='numberInProject']/value/text()")
summary
and numberInProject
are the name of desired fields in REST XML, you should put there yours.
Simple, eh?
Put youtrack.rb
to jobs/
folder and youtrack.erb
to your dashboard in dashboards
.
And that is all.