According to the documentation I should be able to get the latest event of an issue at /api/0/issues/{issue_id}/events/latest/. However, this always returns a list of all events of that issue. Changing the path from .../events/latest/ to .../events/oldest/ or .../events/foo/ or removing the trailing slash doesn’t change anything either.
Is this a bug or is there something wrong with my setup?
Okay the problem was that this was not a ticket with an exception but only a ticket with a message with events. For that it didn’t work. For exceptions the endpoint works as expected. Maybe this should be clarified in the docs?