CAL-338 CAL-339 update case search with task cancelled and task in the past