- Used Zammad version: 3.2
I added a custom state
Ticket::State.create_or_update( name: 'Test', state_type: Ticket::StateType.find_by(name: 'open'), ignore_escalation: true, created_by_id: 1, updated_by_id: 1, )
I want to hide in the client interface the new state that will only remain open / closed
I tried it, but it leaves me the new state.
attribute = ObjectManager::Attribute.get( object: 'Ticket', name: 'state_id', ) attribute.screens['edit']['ticket.customer']['filter'] = Ticket::State.where(name: ['closed', 'open']).pluck(:id) attribute.save!
What am I missing here?