fix(rest): fix candidateGroups of task query

related to #CAM-2947