mirror of
https://github.com/Threnklyn/jira.git
synced 2026-05-19 04:33:28 +02:00
Added --start parameter for pagination on results
This commit is contained in:
@@ -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(),
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user