Zammad’s Rails console; Ticket.State.all does not show new state


I created a new status using Zammad’s Rails console with the ID 8. If I now query withe the statement <Ticket::StateType.all> all state, my new state is not listed. Why?

Now I want to create another state, which ID do I have to take? Again the 8th, that I used last time? Or the 9th?

States are different to StateTypes - try checking Ticket::State.all.

Additionally you might want to have a look on our docs:

Thanks for your help!
I was able to create the desired state.

This topic was automatically closed after 416 days. New replies are no longer allowed.