Well, finally found where the problem is. I used the 0.1.10 version of gem (the one that was downloaded by default with the gem install command) and this version (possibly) had this problem - at least it did not support the maxResults parameter in the jql method for problems. The solution was to load the gem from git by adding the following line to the Gemfile:
gem 'jira-ruby', :git => 'git://github.com/sumoheavy/jira-ruby.git'
Then I found in the code that the jql method accepts a hash where this parameter can be specified, so now the code is the following and it works:
require 'jira' class PagesController < ActionController::Base
And I also had to upgrade the rail rail to version 4.1.4.
source share