# Description A [Dashing](https://github.com/Shopify/dashing) widget to display the number of issues returned by a Jira Query Language (JQL) search. The number of issues will be displayed using the Numbers widget. This widget is a generalized version of the [Atlassian Jira: Number of issues in a Jira filter query](https://gist.github.com/christiangalsterer/1b24f2b42aa39ba63a92) widget, which shows the number of issues for saved Jira filter. # Dependencies The following dependencies are required. Please add them to your dashing gemfile. ``` gem 'jira-ruby', :require => 'jira' ``` Run `bundle install` # Installation If you want to install the widget manually put the file `jira_number_of_issues_in_query.rb` file into the `/jobs` directory. If you want to install the widget automatically type: ``` dashing gist 53f2a84b5e6b0265dd12 ``` # Usage ## 1. Adjust Job Configuration Change the `JIRA_PROPS` in the `jira_number_of_issues_in_query.rb` file to the correct URL of your Jira installation, e.g. JIRA_PROPS = { 'url' => URI.parse("https://localhost:8080"), 'username' => 'username', 'password' => 'password', 'proxy_address' => nil, 'proxy_port' => nil } Put all the filter names or filter ids in the `query_mapping`, e.g.: query_mapping = { 'query1' => { :query => 'project = "MyProject"' }, 'query2' => { :query => 'filter in ("My Open Items")' } } ## 2. Adjust Dashboard Configuration Add the following widget HTML snippet for each jql filter to your dashboard erb file.