code: func (s *IssueService) SearchPages(jql string, options *SearchOptions, f func(Issue) error) error {
  	if options == nil {
  		options = &SearchOptions{
  			StartAt:    0,
  			MaxResults: 50,
  		}
  	}
  
  	if options.MaxResults == 0 {
  		options.MaxResults = 50
  	}
  
  	issues, resp, err := s.Search(jql, options)
  	if err != nil {
  		return err
  	}
  
  	for {
  		for _, issue := range issues {
  			err = f(issue)
  			if err != nil {
  				return err
  			}
  		}
  
  		if resp.StartAt+resp.MaxResults >= resp.Total {
  			return nil
  		}
  
  		options.StartAt += resp.MaxResults
  		issues, resp, err = s.Search(jql, options)
  		if err != nil {
  			return err
  		}
  	}
  }
docs: // SearchPages will get issues from all pages in a search
  //
  // JIRA API docs: https://developer.atlassian.com/jiradev/jira-apis/jira-rest-apis/jira-rest-api-tutorials/jira-rest-api-example-query-issues