diff --git a/cli.go b/cli.go index 1232fd3..a2b080f 100644 --- a/cli.go +++ b/cli.go @@ -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(), diff --git a/main/main.go b/main/main.go index e9e472a..59eef14 100644 --- a/main/main.go +++ b/main/main.go @@ -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,