Add param to control whether group series tasks or not in api.