code: func (s *BoardService) GetAllSprintsWithOptions(boardID int, options *GetAllSprintsOptions) (*SprintsList, *Response, error) {
  	apiEndpoint := fmt.Sprintf("rest/agile/1.0/board/%d/sprint", boardID)
  	url, err := addOptions(apiEndpoint, options)
  	if err != nil {
  		return nil, nil, err
  	}
  	req, err := s.client.NewRequest("GET", url, nil)
  	if err != nil {
  		return nil, nil, err
  	}
  
  	result := new(SprintsList)
  	resp, err := s.client.Do(req, result)
  	if err != nil {
  		err = NewJiraError(resp, err)
  	}
  
  	return result, resp, err
  }
docs: // GetAllSprintsWithOptions will return sprints from a board, for a given board Id and filtering options
  // This only includes sprints that the user has permission to view.
  //
  // JIRA API docs: https://docs.atlassian.com/jira-software/REST/cloud/#agile/1.0/board/{boardId}/sprint