Thank you for the reply,
We use Zammad as a customer support system (we are the owners & admins), and we want to check/evaluate that the agents are handling tickets correctly and they’re general overall stats regarding tickets.
We have the user IDs, can this be done via the command line?
You can get every article hat has been created by a specific agent with: Ticket::Article.where(created_by:3)
if you append .count, you’ll get the number of articles he created.
Ticket::Article.where('created_at < ? and created_at > ?', Time.now-1.day, Time.now-2.day).where(created_by:3)
This will get you everything from the last day worth of tickets. Extent it with .pluck(ticket_id) to get the ticket IDS (for getting the ticket numbers if needed )