echo "Ticket.where(owner_id:'1').where(group_id: [GROUPID]).where.not(state_id:[8,4,5])" | zammad run rails c
owner_id = 1 means the ticket is not claimed/ownerless
echo "Ticket.where(owner_id:'1').where(group_id: [GROUPID]).where.not(state_id:[8,4,5])" | zammad run rails c
owner_id = 1 means the ticket is not claimed/ownerless