[solved] New custom "pending reminder" state does not provide DateTimepicker

Infos:

  • Used Zammad version: 2.9.x
  • Used Zammad installation source: (source, package, …): Docker-compose container
  • Operating system: Ubuntu 18.04
  • Browser + version: Chrome 73.0.3683.86

Expected behavior:

  • Show the Datepicker and behave like the State “pending reminder”.

Actual behavior:

  • After adding a new state as described here. The Datepicker don’t show up eventhough I created a state like “pending reminder”.

Steps to reproduce the behavior:

Run this code in the rails console:

Ticket::State.create_or_update(
    name: 'pending customer feedback',
    state_type: Ticket::StateType.find_by(name: 'pending reminder'),
    ignore_escalation: true,
    created_by_id: 1,
    updated_by_id: 1,
)

attribute = ObjectManager::Attribute.get(
    object: 'Ticket',
    name: 'state_id',
)
attribute.data_option[:filter] = Ticket::State.by_category(:viewable).pluck(:id)
attribute.screens[:create_middle]['ticket.agent'][:filter] = Ticket::State.by_category(:viewable_agent_new).pluck(:id)
attribute.screens[:create_middle]['ticket.customer'][:filter] = Ticket::State.by_category(:viewable_customer_new).pluck(:id)
attribute.screens[:edit]['ticket.agent'][:filter] = Ticket::State.by_category(:viewable_agent_new).pluck(:id)
attribute.screens[:edit]['ticket.customer'][:filter] = Ticket::State.by_category(:viewable_customer_edit).pluck(:id)
attribute.save!

image

image

There are several others that did the same and have this problem. But I can’t find any solution…

Help is very appreciated!

Hey @okaufmann,

we already got it to work:

cheers

1 Like

This worked perfectly.

Thank you!

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