Query issue is limited to 20 issues

Hi,

I am using

 // create a connection to JIRA
 var jira = new Jira("http://<your_jira_server>", "<user>", "<password>");

 // use LINQ syntax to retrieve issues
 var issues = from i in jira.Issues
              where i.Assignee == "admin" && i.Priority == "Major"
              orderby i.Created
              select i;
and query result only with first 20 items.
How can i get remaining issues?
 
Thanking you in advance.

5 answers

Try setting the MaxIssuesPerRequest property. For instance:

jira.MaxIssuesPerRequest = int.MaxValue;

Has anyone figured this out yet? I am having the same problem...

Has this been resolved?

Even when you use int.MaxValue or "-1", the max issues returned is 1000.
How do you get to access all the issues?

I get a limit of 100. :( I had to loop through fetching multiple results. Msg me if you want my sample code. 

yup, please Colin - can you post it up?

0 vote

try "jira.Issues.MaxIssuesPerRequest = 2000"

you can achieve this using following code :

 int itemsPerPage=1;

int startAt=0;

IPagedQueryResult<Issue> pagedQueryResult = await _oJira.Issues.GetIssuesFromJqlAsync($"project = {projectName} ORDER BY created DESC", itemsPerPage, startAt);

if (pagedQueryResult.Count() > 0) {

_oJira.MaxIssuesPerRequest = pagedQueryResult.TotalItems;

var listTickets = (from i in _oJira.Issues.Queryable  where i.Project.Equals(projectName, StringComparison.InvariantCultureIgnoreCase) select i).ToList();

}

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Marketplace Apps

Tips on how to choose the best estimation method for your planning

Planning and grooming sessions all come with their own sets of rules. Team members meet to estimate stories or other work items, all according to an agreed-upon process. And with every session comes ...

71 views 0 11
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you