updating get tasks api to be able to retrieve tasks by tags