class JIRA::Resource::Project

Public Class Methods

key_attribute() click to toggle source
# File lib/jira/resource/project.rb, line 14
def self.key_attribute
  :key
end

Public Instance Methods

issues(options={}) click to toggle source

Returns all the issues for this project

# File lib/jira/resource/project.rb, line 19
def issues(options={})
  search_url = client.options[:rest_base_path] + '/search'
  query_params = {:jql => "project=\"#{key}\""}
  query_params.update Base.query_params_for_search(options)
  response = client.get(url_with_query_params(search_url, query_params))
  json = self.class.parse_json(response.body)
  json['issues'].map do |issue|
    client.Issue.build(issue)
  end
end