How do I get last time a ticket was updated with a non-internal article?

Infos:

  • Used Zammad version: 6.4.0

I’m using the API, and I see the following properties on a ticket:

  • last_contact_at
  • last_contact_agent_at
  • last_contact_customer_at
  • last_owner_update_at

However, none of them seem to be getting updated on the ticket as I create new replies as an agent or a customer.

My use case is I am trying to create a UI in a web application where I am showing a customer a list of their tickets. I’d like to show the last time that a non-internal article was added onto the ticket. Here’s an example screenshot:

I was hoping that I wouldn’t have to load all articles on every ticket to figure out which one was the most recent non-internal article.

I’m not very familiar with Ruby, so forgive me if it’s obvious, but reading the ticket model ( zammad/app/models/ticket.rb at develop · zammad/zammad · GitHub ) does not make it more clear to me how those fields work, or if it’s possible to get the information I’m looking for in a simple manner.

Any help would be appreciated, thanks!