Sha256: e9a719367b1fd7712ab82c0a9b71ee4eb178db9ff6ba5f53fbc4f7c419095dfb
Contents?: true
Size: 937 Bytes
Versions: 1
Compression:
Stored size: 937 Bytes
Contents
# @author Filip Jakubowski module JiraIssues class JiraQuery # Creates new Query object # and sets the maximum number of issues returned by Query # @param max_results [Integer] maximum number of issues returned by query def initialize(max_results = 1000) @query_max_results = max_results end # Handles a JQL Request and returns JiraIssueavigator for that query # @param query [String] # @return [JiraIssueNavigator] with those requests def jql_query(query) result = adapter.jql(query, fields:[:description, :summary, :created, :status, :issuetype, :priority, :resolutiondate], max_results: @query_max_results) JiraIssuesNavigator.new(result.map { |i| JiraIssueMapper.new.call(i) }) end private # Provides adapter that connects to JIRA # @return [JiraAdapter] with those requests def adapter @adapter ||= JiraIssues::JiraAdapter.new end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jira_issues-0.0.6 | lib/jira_issues/jira_query.rb |