adding useful getTicketsByStatus method