Added --start parameter for pagination on results

This commit is contained in:
David Reuss
2017-04-24 11:33:17 +02:00
parent cd9976ae4e
commit f47563048b
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -544,7 +544,7 @@ func (c *Cli) FindIssues() (interface{}, error) {
json, err := jsonEncode(map[string]interface{}{
"jql": query,
"startAt": "0",
"startAt": c.opts["start_at"],
"maxResults": c.opts["max_results"],
"fields": fields,
"expand": c.expansions(),
+2
View File
@@ -115,6 +115,7 @@ Query Options:
-f --queryfields=FIELDS Fields that are used in "list" template: (default: %s)
-i --issuetype=ISSUETYPE The Issue Type
-l --limit=VAL Maximum number of results to return in query (default: %d)
--start=START Start parameter for pagination
-p --project=PROJECT Project to Search for
-q --query=JQL Jira Query Language expression for the search
-r --reporter=USER Reporter to search for
@@ -236,6 +237,7 @@ Command Options:
"x|expand=s": setopt,
"s|sort=s": setopt,
"l|limit|max_results=i": setopt,
"start|start_at=i": setopt,
"o|override=s%": &opts,
"noedit": setopt,
"edit": setopt,