Add query method for task by candidate user or candidate group or assingeed