Add get_tasks_by_filter api to filter list of tasks by string.