Sha256: 85f9c750ff7e42a61f8be8eca6e45383cb27a3b6fc3d19c3b04d86dcdde55028
Contents?: true
Size: 559 Bytes
Versions: 1
Compression:
Stored size: 559 Bytes
Contents
module Capistrano module Jira class IssueFinder include Finder include ErrorHelpers execute do begin Jira.client.Issue.jql(jql, fields: ['status'], max_results: 1_000_000) rescue JIRA::HTTPError => e raise FinderError, error_message(e) end end private def self.jql [ "project = #{fetch(:jira_project_key)}", "status = #{fetch(:jira_status_name)}", fetch(:jira_filter_jql) ].compact.join(' AND ') end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
capistrano-jira-0.3.1 | lib/capistrano/jira/issue_finder.rb |