Change pagesize for ticket notes to 2000

This commit is contained in:
Steven Polley 2019-01-16 14:00:49 -07:00
parent 0cdc6993d3
commit d6aa5ac62c
1 changed files with 1 additions and 0 deletions

View File

@ -845,6 +845,7 @@ func (cw *Site) GetSources() (*[]Source, error) {
//GetTicketNotes will accept a ticketID and return a slice of TicketNote.
func (cw *Site) GetTicketNotes(ticketID int) (*[]TicketNote, error) {
req := cw.NewRequest(fmt.Sprintf("/service/tickets/%d/notes", ticketID), "GET", nil)
req.PageSize = 2000
err := req.Do()
if err != nil {
return nil, fmt.Errorf("request failed for %s: %s", req.RestAction, err)