Jira issue count plugin for dashing
Dashing widget to display the total number of Jira issues for a JQL query
Put the files jira_issuecount.rb in the /jobs directory and (optionally) jira_issuecount.yaml in the /conf directory
This can also be done by using the gist: https://gist.github.com/vossim/c0072296d3297d3ae6fd
dashing install c0072296d3297d3ae6fd
Required configuration:
jira_url: Url to your jira server, excluding the trailing slash (/)username: Username for a user with sufficient rights on your jira serverpassword: Password for the userissuecount_mapping: Mapping of the issue count name and jql query
Example of issuecount_mapping:
issuecount_mapping:
myFilter: filter=123
myFilter2: filter=456
Create a jira_issuecount.yaml file in the /conf directory and configure it (example file in this repo).
Configure the JIRA_ISSUECOUNT_CONFIG block in the ruby code.
Put the following in your dashboard.erb file to show the count:
<li data-row="1" data-col="1" data-sizex="1" data-sizey="1">
<div data-id="myFilter" data-view="Number" data-title="A nice title for this JQL query"></div>
</li>
Distributed under the MIT license
At first it is realy a good plugin and it make me win a lot of time.
But I have found some issues, the first one was about a required module
You can add
require'yaml'at the the beginning of your jira_issuecount.rb scriptthe second one was about
send_event(mappingName,{current:total})here rmappingName var contains "filterX" value but it must refer to the widget_id ? Right ?
so I modified it like bellow:
send_event('myFilter', current:total)`It works fine now