Sha256: 264bb855a325cdbbcae764cfd364913b35b343d701cf61597f3e7d80d27fa260

Contents?: true

Size: 486 Bytes

Versions: 2

Compression:

Stored size: 486 Bytes

Contents

module JiraIssues
  class JiraQuery
    def initialize(max_results = 1000)
      @query_max_results = max_results
    end

    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
    def adapter
      @adapter ||= JiraIssues::JiraAdapter.new
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jira-issues-0.0.2 lib/jira_issues/jira_query.rb
jira-issues-0.0.1 lib/jira_issues/jira_query.rb