简体   繁体   中英

How to set “startAt” argument value when using LINQ with Jira Atlassian SDK

As documented here , LINQ queries can be used to fetch issue details from Jira through the Atlassian SDK. However, max issues returned is 1000 per request. I have tried and went through few similar queries on the web like this on how can you change the default value of "startAt".

Also, GetIssuesWithJqlAsync method does provide capability to modify the "startAt" value. Any way to override its default value through LINQ?

You can use Skip(n) to skip items in an enumerable with Linq .

Skip(1000 * page).Take(1000) would work for you.

MSDN on Skip

LINQ allows you to use

item.Skip(n);
item.Take(n);

You can define where to start taking results from the resultant query.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM