Change Ticket State only if Bar and Kitchen Orders Served?

ok i am working now with the task editor widget to make that hapend, how i can filter the orders for bar and kitchen or drinks and food. like emre showed it on this release: SambaPOS 5.1.62 Release ?