Bulk close multiple Tickets wont work

  • Used Zammad version: 5.4.0-1680612797.66e35235.focal
  • Used Zammad installation type: package
  • Operating system: Ubuntu 20.04.6 LTS
  • Browser + Version: Recent version of Firefox / Chrome on Mac

Hi There,

i have some trouble with bulk closing tickets. It worked fine before. Sadly i dont know when it starts not working anymore…

Expected behavior:

  • Bulk close selected Tickets in ‘Open Tickets’

Actual behavior:

  • No ticket gets closed. Instead Error Message:

Sammelaktion fehlgeschlagen
Ticket konnte nicht gespeichert werden:

Steps to reproduce the behavior:

  • Try to select one or more tickets and close them

I tried updating to recent version.
Tried ruby clean cache.
Behavior persists…

Some lines from production.log

Running job thread for ‘Generate ‘Session’ data.’ (Sessions.jobs) status is: sleep
I, [2023-04-05T12:07:06.316628#902-112260] INFO – : Running job thread for ‘Check channels.’ (Channel.fetch) status is: sleep
I, [2023-04-05T12:07:06.316670#902-112260] INFO – : Running job thread for ‘Process ticket escalations.’ (Ticket.process_escalation) status is: sleep
I, [2023-04-05T12:07:06.316696#902-112260] INFO – : Running job thread for ‘Check ‘Channel’ streams.’ (Channel.stream) status is: sleep
I, [2023-04-05T12:07:06.319845#902-112260] INFO – : Running job thread for ‘Execute planned jobs.’ (Job.run) status is: sleep
I, [2023-04-05T12:07:15.751201#898-1052480] INFO – : Started POST “/api/v1/tickets/mass_update” for 10.0.0.120 at 2023-04-05 12:07:15 +0000
I, [2023-04-05T12:07:15.760038#898-1052480] INFO – : Processing by TicketsMassController#update as JSON
I, [2023-04-05T12:07:15.760121#898-1052480] INFO – : Parameters: {“ticket_ids”=>[“26514”, “26513”, “26512”, “26511”], “attributes”=>{“group_id”=>“5”, “owner_id”=>“174”, “state_id”=>“4”, “priority_id”=>“1”, “ticket_ids”=>“26514,26513,26512,26511”, “body”=>“[FILTERED]”, “type_id”=>“10”, “internal”=>“false”, “from”=>“User Name”, “sender_id”=>1}, “article”=>{“from”=>“User Name”, “body”=>“[FILTERED]”, “type_id”=>“10”, “sender_id”=>1, “internal”=>“false”}}
I, [2023-04-05T12:07:15.838117#898-1052480] INFO – : Completed 422 Unprocessable Entity in 78ms (Views: 0.2ms | ActiveRecord: 14.7ms | Allocations: 39023)
I, [2023-04-05T12:07:16.320381#902-112260] INFO – : ProcessScheduledJobs running…
I, [2023-04-05T12:07:16.323174#902-112260] INFO – : Running job thread for ‘Generate ‘Session’ data.’ (Sessions.jobs) status is: sleep
I, [2023-04-05T12:07:16.323587#902-112260] INFO – : Running job thread for ‘Check channels.’ (Channel.fetch) status is: sleep
I, [2023-04-05T12:07:16.323717#902-112260] INFO – : Running job thread for ‘Process ticket escalations.’ (Ticket.process_escalation) status is: sleep
I, [2023-04-05T12:07:16.323781#902-112260] INFO – : Running job thread for ‘Check ‘Channel’ streams.’ (Channel.stream) status is: sleep
I, [2023-04-05T12:07:16.331995#902-2031820] INFO – : execute ExternalCredential::Exchange.refresh_token (try_count 0)…
I, [2023-04-05T12:07:16.332205#902-2031820] INFO – : ended ExternalCredential::Exchange.refresh_token took: 0.006702049 seconds.
I, [2023-04-05T12:07:17.326930#902-112260] INFO – : Running job thread for ‘Execute planned jobs.’ (Job.run) status is: sleep
I, [2023-04-05T12:07:19.395786#902-112540] INFO – : 2023-04-05T12:07:19+0000: [Worker(host:svstmth001 pid:902)] Job TransactionJob [a2172329-d6b8-413a-9cf1-583cca3ba0ca] from DelayedJob(default) with arguments: [{“object”=>“Ticket”, “object_id”=>26514, “user_id”=>174, “created_at”=>{“_aj_serialized”=>“ActiveJob::Serializers::TimeWithZoneSerializer”, “value”=>“2023-04-05T12:07:15.789345961Z”}, “type”=>“update”, “changes”=>{“group_id”=>[1, 5], “priority_id”=>[2, 1], “state_id”=>[2, 4], “owner_id”=>[1, 174], “close_at”=>[nil, {“_aj_serialized”=>“ActiveJob::Serializers::TimeWithZoneSerializer”, “value”=>“2023-04-05T12:07:15.786000000Z”}], “updated_by_id”=>[1, 174], “last_close_at”=>[nil, {“_aj_serialized”=>“ActiveJob::Serializers::TimeWithZoneSerializer”, “value”=>“2023-04-05T12:07:15.786000000Z”}], “_aj_symbol_keys”=>[]}, “_aj_symbol_keys”=>[“object”, “object_id”, “user_id”, “created_at”, “type”, “changes”]}, {“interface_handle”=>“application_server”, “_aj_symbol_keys”=>[“interface_handle”]}] (id=1369881) (queue=default) RUNNING
I, [2023-04-05T12:07:19.783577#898-1062320] INFO – : Completed 200 OK in 21027ms (Views: 0.2ms | ActiveRecord: 2.1ms | Allocations: 49060)
I, [2023-04-05T12:07:19.788526#902-112540] INFO – : 2023-04-05T12:07:19+0000: [Worker(host:svstmth001 pid:902)] Job TransactionJob [a2172329-d6b8-413a-9cf1-583cca3ba0ca] from DelayedJob(default) with arguments: [{“object”=>“Ticket”, “object_id”=>26514, “user_id”=>174, “created_at”=>{“_aj_serialized”=>“ActiveJob::Serializers::TimeWithZoneSerializer”, “value”=>“2023-04-05T12:07:15.789345961Z”}, “type”=>“update”, “changes”=>{“group_id”=>[1, 5], “priority_id”=>[2, 1], “state_id”=>[2, 4], “owner_id”=>[1, 174], “close_at”=>[nil, {“_aj_serialized”=>“ActiveJob::Serializers::TimeWithZoneSerializer”, “value”=>“2023-04-05T12:07:15.786000000Z”}], “updated_by_id”=>[1, 174], “last_close_at”=>[nil, {“aj_serialized"=>“ActiveJob::Serializers::TimeWithZoneSerializer”, “value”=>“2023-04-05T12:07:15.786000000Z”}], “aj_symbol_keys"=>[]}, “aj_symbol_keys"=>[“object”, “object_id”, “user_id”, “created_at”, “type”, “changes”]}, {“interface_handle”=>“application_server”, “aj_symbol_keys"=>[“interface_handle”]}] (id=1369881) (queue=default) COMPLETED after 0.3926
I, [2023-04-05T12:07:19.797622#898-1052480] INFO – : Started POST “/api/v1/message_receive” for 10.0.0.120 at 2023-04-05 12:07:19 +0000
I, [2023-04-05T12:07:19.801537#898-1052480] INFO – : Processing by LongPollingController#message_receive as JSON
I, [2023-04-05T12:07:19.801592#898-1052480] INFO – : Parameters: {“client_id”=>“f31c49d4-312c-4140-b34a-1cfd7cf4dd81”}
I, [2023-04-05T12:07:20.742235#898-1052520] INFO – : Completed 200 OK in 25024ms (Views: 0.2ms | ActiveRecord: 2.2ms | Allocations: 82737)
I, [2023-04-05T12:07:20.752452#898-1062320] INFO – : Started POST “/api/v1/message_receive” for 10.0.0.120 at 2023-04-05 12:07:20 +0000
I, [2023-04-05T12:07:20.756390#898-1062320] INFO – : Processing by LongPollingController#message_receive as JSON
I, [2023-04-05T12:07:20.756527#898-1062320] INFO – : Parameters: {“client_id”=>“8cf189f8-821b-4c24-be21-b843f84d3c34”}
I, [2023-04-05T12:07:21.313615#898-1255900] INFO – : Completed 200 OK in 25034ms (Views: 0.3ms | ActiveRecord: 3.2ms | Allocations: 82874)
I, [2023-04-05T12:07:21.340641#898-1052520] INFO – : Started POST “/api/v1/message_receive” for 10.0.0.120 at 2023-04-05 12:07:21 +0000
I, [2023-04-05T12:07:21.345299#898-1052520] INFO – : Processing by LongPollingController#message_receive as JSON
I, [2023-04-05T12:07:21.345473#898-1052520] INFO – : Parameters: {“client_id”=>“ec86ea81-081e-4c0b-b26a-e7ccba1063f2”}
I, [2023-04-05T12:07:21.490601#898-1198340] INFO – : Completed 200 OK in 23024ms (Views: 0.2ms | ActiveRecord: 2.2ms | Allocations: 82688)
I, [2023-04-05T12:07:21.504071#898-1255900] INFO – : Started POST “/api/v1/message_receive” for 10.0.0.120 at 2023-04-05 12:07:21 +0000
I, [2023-04-05T12:07:21.508193#898-1255900] INFO – : Processing by LongPollingController#message_receive as JSON
I, [2023-04-05T12:07:21.508331#898-1255900] INFO – : Parameters: {“client_id”=>“761dd8b1-ef31-4750-af39-e72bae3dbcc2”}
I, [2023-04-05T12:07:22.054266#898-1198340] INFO – : Started GET "/api/v1/online_notifications/?full=true&
=1680696082317” for 10.0.0.120 at 2023-04-05 12:07:22 +0000
I, [2023-04-05T12:07:22.058881#898-1198340] INFO – : Processing by OnlineNotificationsController#index as JSON
I, [2023-04-05T12:07:22.058940#898-1198340] INFO – : Parameters: {“full”=>“true”, "
”=>“1680696082317”}
I, [2023-04-05T12:07:22.675117#898-1198340] INFO – : Completed 200 OK in 616ms (Views: 40.5ms | ActiveRecord: 35.3ms | Allocations: 272117)
I, [2023-04-05T12:07:24.200735#898-1198340] INFO – : Started GET "/api/v1/online_notifications/?full=true&
=1680690591938” for 10.0.0.120 at 2023-04-05 12:07:24 +0000
I, [2023-04-05T12:07:24.205314#898-1198340] INFO – : Processing by OnlineNotificationsController#index as JSON
I, [2023-04-05T12:07:24.205392#898-1198340] INFO – : Parameters: {“full”=>“true”, "
”=>“1680690591938”}
I, [2023-04-05T12:07:24.528771#898-1198340] INFO – : Completed 200 OK in 323ms (Views: 31.9ms | ActiveRecord: 31.7ms | Allocations: 199116)

Hope you can help. Thanks in advance !
And thanks for an awesome tickettool !

Ensure that all mandatory fields are set / have values when executing mass operations.
The easiest way to ensure this is via Macros ( Macros — Zammad documentation and Macros — Zammad (for Agents) documentation ).

Zammad denies updating tickets that don’t meet the requirements since 1-2 versions by now.

1 Like

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