Apply filter to get tasks by filter