zendesk / zendesk_api_client_rb

Official Ruby Zendesk API Client
http://developer.zendesk.com/
Apache License 2.0
387 stars 183 forks source link

Unable to sort comments #342

Closed smasry closed 2 years ago

smasry commented 7 years ago

The comments endpoint ( GET /api/v2/tickets/{ticket_id}/comments.json ) allows a sort_order parameter sort_order The sort_order option does not seem to pass through to the url parameters. ticket.comments(sort_order: 'asc')

yachtcaptain23 commented 5 years ago

+1, would be good to add sort as part of the functionality. I tried passing in as part of the URI using &sort_order=created_at but the Zendesk API casts it to %26sort_order=created_at which doesn't work.

ecoologic commented 2 years ago

This appears to be a duplicate of #459, which has been answered.