##Preview
Simple Dashing widget that displays a progress meter for your current JIRA sprint, with the completed and total point values at the bottom.
##Usage
#####Dependencies
Add jira-ruby
to the gemfile:
gem 'jira-ruby'
and then just run
$ bundle install
#####Setup
To install this widget, simply run dashing install a1dae02d476f6055f82a
.
Then substitute the following placeholders in sprint_progress.rb
with the appropriate values:
ENV['JIRA_USERNAME']
=> your JIRA username (optionally can be placed in your environment variables fileENV['JIRA_PASSWORD']
=> your JIRA password (also optionally can be placed in your environment variables filehttps://your-jira-instance.atlassian.net
=> the location of your JIRA instanceSPRINT_WIDGET_DATA_ID
=> the target HTML element'sdata-id
attribute in your layout
Finally, to include the widget on a dashboard, drop the following snippet into your layout:
<li data-row="1" data-col="1" data-sizex="1" data-sizey="1">
<div data-view="SprintProgress" data-id="whatever_id_you_like"></div>
</li>
Hi, I'm curious, has anyone been able to get this widget working? I've followed the instructions above and when I start dashing what is retrieved from the JIRA instance is the entire HTML page for the sprint which obviously the widget can't work with. Can anyone share a scrubbed version of the context_path parameter they got to work?
@dragonai on your closed_points and total_points calculations you are using the JIRA openSprints() function. We have had the experience here that openSprints will retrieve items from the current sprint AND future planned sprints that have not started. We got around that by using the futureSprints() function. SO "sprint in openSprints() and not in futureSprints()". As stated I haven't been able to get the widget running yet so I can't confirm if that issue is occurring.