bur
July 24, 2023, 9:13am
1
Used Zammad version: 6.0
Used Zammad installation type: Ubuntu DEB
Operating system: Ubuntu 20.04
Browser + version: Edge, Chrome, Firefox, Safari
Expected behavior:
Setting “Pending until” and recieving a notification
Actual behavior:
Not getting Notifications for some pending reached tickets
Steps to reproduce the behavior:
Can’t reproduce, some work, some not.
Hi @bur .
What happens when you run zammad run rails r 'Ticket.process_pending'
?
bur
July 24, 2023, 9:43am
3
It takes 10 seconds, then nothing happens, I recieve the cursor back.
… and your tickets are still not changed?
bur
July 24, 2023, 12:15pm
5
Nothing happened. What should happen? Should I recieve the missed notifcations when running?
Exactly. It’s the method that takes care of all tickets that are in a pending state + reached their pending time.
Please use the Rails Console and execute the following command, it’s just a search: Ticket.where(state_id: Ticket::State.where(state_type_id: Ticket::StateType.find_by(name: 'pending action')).where.not(next_state_id: nil).pluck(:id)).where('pending_time <= ?', Time.zone.now)
bur
July 24, 2023, 12:58pm
8
I would say, no News here
This means there are no tickets in a pending state that are overdue.
bur
July 24, 2023, 1:37pm
10
OK. But as you see in the Screenshots, the Ticket was set to pending today 09:00 AM, My User was configured to get Notifications on overdue and I got no Notifications for that Ticket.
What could be wrong?
Did you play around with the ticket states?
Rails Console:
Ticket::StateType.find_by(name: 'pending action')
Ticket::State.where(state_type_id: Ticket::StateType.find_by(name: 'pending action'))
This looks fine. Could you post the ticket history of the ticket you’re missing the notification for?
system
Closed
July 20, 2024, 7:46pm
14
This topic was automatically closed 360 days after the last reply. New replies are no longer allowed.