getAssignmentsByTaskId method implemented