Question about chat retention, goal is forever

Infos:

  • Used Zammad version: This is Zammad version 6.2.0-1707209798.85f078b9.bookworm
  • Used Zammad installation type: package
  • Operating system: Debian GNU/Linux 12

I suppose this is mostly a question about something I read posted by MrGeneration in a thread titled “Delete Chat Conversation” at…

community DOT zammad DOT org/t/delete-chat-conversation/7043

I ended up on that page after googling about how to delete chats, I’ve only moved onto Zammad from another help desk software a few days ago, and I had a bunch of test chats and test tickets that I was trying to clean up.

I managed to get rid of my tickets by using Ticket.destroy_all (did this delete the test chats as well? If there’s a way to find previous chats that I didn’t press the “turn chat into a ticket” button on, I don’t know what it is) and manually creating the one “real” one from a real user, but, I’m going to be using Zammad in an environment that wants me to retain my help desk records and chats until “forever from now”.

Can I make Zammad not delete my chats once they are 3 months old? The “Scheduler” potion of the admin panel contains nothing, so maybe this is already happening, I’m not sure.

Hi @Travis. Closed chat sessions are deleted after 12 months by default. If you would like to change this, you need to disable the scheduler that is performing this action. See here.

Thanks for your help, it looks like I just needed to do

Scheduler.create_or_update(
  name:          __('Clean up closed sessions.'),
  method:        'Chat.cleanup',
  period:        5.days,
  prio:          2,
  active:        false,
  updated_by_id: 1,
  created_by_id: 1,
)

in the rails console. Is there a way to view the settings for “Clean up closed sessions.” to verify that active is false?

I haven’t touched rails in nearly 20 years so I’m just not familiar with it anymore (though to be fair, I only touched it for about a month when it was brand new and everyone was like “Ruby on Rails is the best thing ever invented!”), and if possible I’m trying to avoid being caught by surprise a year down the road with a ticket having a link to helpdesk DOT internal/#customer_chat/session/12345 and that link pointing nowhere instead of letting me see what happened in that chat.

Scheduler.find_by(name: 'Clean up closed sessions.') should work :slight_smile:

Thanks again, I managed to get to…

[2] pry(main)> Scheduler.    (pressing the tab key goes here)
Display all 826 possibilities? (y or n)

and figured I was doomed :slight_smile:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.