Michael, thank you for your help! The script works now. Could you please shed some light, what was the reason? Was something changed in ZenDesk API?
We need the ability to change ticket comments order for agents as well. Some agents in our company prefer to have the reverse order of the ticket comments in the agent interface: latest comment at ...