1
0
mirror of https://github.com/interviewstreet/go-jira.git synced 2025-04-13 11:40:36 +02:00

executable searchpages example

This commit is contained in:
chradke 2018-11-13 12:11:17 -05:00 committed by Andy Grunwald
parent 5202530abe
commit 553e8b8eed

View File

@ -48,7 +48,10 @@ func main() {
// 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
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))