Retrieve tasks' contexts and categories