How to restore a deleted ticket state


  • Used Zammad version: 2.4.x
  • Used Zammad installation source:
  • Operating system: CentOs
  • Browser + version: Google Chrome, Version 66.0.3359.139 (Offizieller Build) (64-Bit)

We accidently deleted default ticket states ‘Pending reminder’ and ‘Pending close’ (Using rails console - Ticket::State.find(X).destroy)

Is there a way to restore the default ticket states?

Many thanks!

I think @thorsteneckel or @martini can help at that point.

Took a look into the admin documentation, but I think it’s missing especially those parts. :slight_smile:

You can run zammad run rails r db/seeds/ticket_states.rb

This will create each default state that doesn’t exist.

1 Like

Many thanks Thorsten

I tried that, but seems there are some constraints. Got a lot of error messages, starting:


Sorry for the delay. Please edit the file and add UserInfo.current_user_id = 1 in the first line. You can remove it afterwards.

Many thanks Thorsten

Very often in the community it has been mentioned that there will be a UI in order to be able to change/add status. What’s the status here?

Many thanks and cheers

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