Fixed the client to do task state filtering server-side
refs #48