mirror of
https://github.com/interviewstreet/go-jira.git
synced 2025-04-15 11:46:33 +02:00
executable searchpages example
This commit is contained in:
parent
5202530abe
commit
553e8b8eed
@ -48,7 +48,10 @@ func main() {
|
|||||||
|
|
||||||
// SearchPages will page through results and pass each issue to appendFunc
|
// SearchPages will page through results and pass each issue to appendFunc
|
||||||
// In this example, we'll search for all the issues in the target project
|
// In this example, we'll search for all the issues in the target project
|
||||||
client.Issue.SearchPages(fmt.Sprintf(`project=%s`, strings.TrimSpace(jiraPK)), nil, appendFunc)
|
err = client.Issue.SearchPages(fmt.Sprintf(`project=%s`, strings.TrimSpace(jiraPK)), nil, appendFunc)
|
||||||
|
if err != nil {
|
||||||
|
log.Fatal(err)
|
||||||
|
}
|
||||||
|
|
||||||
fmt.Printf("%d issues found.\n", len(issues))
|
fmt.Printf("%d issues found.\n", len(issues))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user