I'm trying to fetch issuses from JIRA using gem called jira-ruby. The problem is, that the result contains 70 issues, but I can see only the first 50. When using directly the JIRA REST API, I can set maxResults parameter (outside the JQL) to a higher number. But I can't find that possibility in the ruby gem.
Is there any possibility to set the maxResults flag directly using this ruby gem, or any other equally simple solution?
The code is the following:
require 'jira'
class PagesController < ActionController::Base
# Prevent CSRF attacks by raising an exception.
# For APIs, you may want to use :null_session instead.
protect_from_forgery with: :exception
def home
options = {
:username => 'xxx',
:password => 'xxx',
:site => "https://xxx.atlassian.net",
:context_path => '',
:auth_type => :basic
}
client = JIRA::Client.new(options)
@issues = 0
client.Issue.jql("project = AA AND fixVersion = it11").each do |issue|
@issues += 1 # "#{@issues} <br> #{issue.id} - #{issue}"
end
end
end