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

Hello,

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:
https://docs.zammad.org/en/latest/admin/console/working-on-tickets.html#add-new-ticket-state

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