Still trying to narrow it down. Please note that in the following example, PostmasterFilter
should set the ‘ticket type’ (x-zammad-ticket-type
) to ‘monitoring’ (all lowercase)—but the ticket shows ‘Monitoring’ with a capital M.
=> #<PostmasterFilter id: 4, name: "[Gruppe ändern] monitoring@* > Typ: Monitoring / G...", channel: "email", match: {"from"=>{"operator"=>"contains", "value"=>"monitoring@"}}, perform: {"x-zammad-ticket-type"=>{"value"=>"monitoring"}, "x-zammad-ticket-group_id"=>{"value"=>"5"}}, active: true, note: "", updated_by_id: 3, created_by_id: 3, created_at: "2019-01-15 14:50:07", updated_at: "2020-06-16 14:49:35">,
=> #<Ticket id: 1XXXX, group_id: 5, priority_id: 2, state_id: 4, organization_id: 5, number: "331XXXX7", title: "[Veeam Backup & Replication] [Warning] Backup Job ...", owner_id: 1, customer_id: XXX, note: nil, first_response_at: nil, first_response_escalation_at: nil, first_response_in_min: nil, first_response_diff_in_min: nil, close_at: "2020-06-16 13:10:44", close_escalation_at: nil, close_in_min: nil, close_diff_in_min: nil, update_escalation_at: nil, update_in_min: nil, update_diff_in_min: nil, last_contact_at: "2020-06-16 13:10:44", last_contact_agent_at: nil, last_contact_customer_at: "2020-06-16 13:10:44", last_owner_update_at: nil, create_article_type_id: 1, create_article_sender_id: 2, article_count: 1, escalation_at: nil, pending_time: nil, type: "Monitoring", time_unit: nil, preferences: {"channel_id"=>6}, updated_by_id: 1, created_by_id: XXX, created_at: "2020-06-16 13:10:43", updated_at: "2020-06-16 13:10:44">
This has been the case since I’m using Zammad, for there’s not a single Ticket with the type ‘monitoring’ (lower case):
irb(main):214:0> Ticket.where(type: 'monitoring').count
=> 0
irb(main):215:0> Ticket.where(type: 'Monitoring').count
=> 7290