Agent Ticket awareness

Agent Ticket awareness

I am trying to develop a system in desk that posts a comment every time a new ticket is opened. The goal is to alert agents of other open tickets. And make them aware of recently closed tickets. I have tried flow and work flow. I can get a comment to post via a custom function. But I can not get either system to actually see counts of tickets either open or recently closed in my comment. Has anyone else done something like this? If so what approach did you take. Can I see your custom function if you used one. Or did you use a paid extension? I'm all ears.