mirror of
https://github.com/interviewstreet/go-jira.git
synced 2025-02-09 13:36:58 +02:00
Updates as requested
This commit is contained in:
parent
9c2ab8f856
commit
cac0fa9648
@ -225,9 +225,11 @@ func main() {
|
||||
Jira API has limit on maxResults it can return. You may have a usecase where you need to get all issues for given JQL.
|
||||
This example shows reference implementation of GetAllIssues function which does pagination on Jira API to get all the issues for given JQL
|
||||
|
||||
please look at examples/pagination/main.go
|
||||
please look at [Pagination Example](https://github.com/andygrunwald/go-jira/blob/master/examples/pagination/main.go)
|
||||
|
||||
|
||||
|
||||
|
||||
```
|
||||
### Call a not implemented API endpoint
|
||||
|
||||
Not all API endpoints of the Jira API are implemented into *go-jira*.
|
||||
|
@ -15,7 +15,7 @@ func GetAllIssues(client *jira.Client, searchString string) ([]jira.Issue, error
|
||||
var issues []jira.Issue
|
||||
for {
|
||||
opt := &jira.SearchOptions{
|
||||
MaxResults: 1000, // Max results can go upto 1000
|
||||
MaxResults: 1000, // Max results can go up to 1000
|
||||
StartAt: last,
|
||||
}
|
||||
|
||||
@ -34,7 +34,7 @@ func GetAllIssues(client *jira.Client, searchString string) ([]jira.Issue, error
|
||||
return issues, nil
|
||||
}
|
||||
}
|
||||
return issues, nil
|
||||
|
||||
}
|
||||
|
||||
func main() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user