Limit available new states for customers


  • Used Zammad version: 3.2

I added a custom state

  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)!

What am I missing here?


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