Skip to content

Commit

Permalink
Merge pull request #77 from davidreuss/fix-start-parameter-for-pagina…
Browse files Browse the repository at this point in the history
…tion

Added --start parameter for pagination on results
  • Loading branch information
coryb authored Apr 24, 2017
2 parents 45ba74b + 9b94d9e commit 0c89a6e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
2 changes: 2 additions & 0 deletions main/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 0c89a6e

Please sign in to comment.