// MoveIssuesToSprint moves issues to a sprint, for a given sprint Id.
// Issues can only be moved to open or active sprints.
// The maximum number of issues that can be moved in one operation is 50.
//
// JIRA API docs: https://docs.atlassian.com/jira-software/REST/cloud/#agile/1.0/sprint-moveIssuesToSprint
MoveIssuesToSprint moves issues to a sprint, for a given sprint Id.
Issues can only be moved to open or active sprints.
The maximum number of issues that can be moved in one operation is 50.


// MoveIssuesToSprint moves issues to a sprint for a given sprint Id . // Issues can only be moved to open or active sprints . // The maximum number of issues that can be moved in one operation is 50 . // // JIRA API docs : https : // docs . atlassian . com / jira - software / REST / cloud / #agile / 1 . 0 / sprint - moveIssuesToSprint
func (s *SprintService) MoveIssuesToSprint(sprintID int, issueIDs []string) (*Response, error) {
	apiEndpoint := fmt.Sprintf("rest/agile/1.0/sprint/%d/issue", sprintID)
	payload := IssuesWrapper{Issues: issueIDs}
	req, err := s.client.NewRequest("POST", apiEndpoint, payload)
	if err != nil {
		return nil, err
	}
	resp, err := s.client.Do(req, nil)
	return resp, err
}
func ( s * SprintService ) MoveIssuesToSprint ( sprintID int , issueIDs [ ] string ) ( * Response , error ) { apiEndpoint := fmt . Sprintf ( " " , sprintID ) payload := IssuesWrapper { Issues : issueIDs } req , err := s . client . NewRequest ( " " , apiEndpoint , payload ) if err != nil { return nil , err } resp , err := s . client . Do ( req , nil ) return resp , err }
MoveIssuesToSprint moves issues to a sprint, for a given sprint Id.
MoveIssuesToSprint moves issues to a sprint for a given sprint Id .