Change pagesize for ticket notes to 2000
This commit is contained in:
parent
0cdc6993d3
commit
d6aa5ac62c
@ -845,6 +845,7 @@ func (cw *Site) GetSources() (*[]Source, error) {
|
|||||||
//GetTicketNotes will accept a ticketID and return a slice of TicketNote.
|
//GetTicketNotes will accept a ticketID and return a slice of TicketNote.
|
||||||
func (cw *Site) GetTicketNotes(ticketID int) (*[]TicketNote, error) {
|
func (cw *Site) GetTicketNotes(ticketID int) (*[]TicketNote, error) {
|
||||||
req := cw.NewRequest(fmt.Sprintf("/service/tickets/%d/notes", ticketID), "GET", nil)
|
req := cw.NewRequest(fmt.Sprintf("/service/tickets/%d/notes", ticketID), "GET", nil)
|
||||||
|
req.PageSize = 2000
|
||||||
err := req.Do()
|
err := req.Do()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("request failed for %s: %s", req.RestAction, err)
|
return nil, fmt.Errorf("request failed for %s: %s", req.RestAction, err)
|
||||||
|
Loading…
Reference in New Issue
Block a user