diff --git a/src/Api/Groups.php b/src/Api/Groups.php index 5a97e0cf..0a34c0e6 100644 --- a/src/Api/Groups.php +++ b/src/Api/Groups.php @@ -796,6 +796,16 @@ public function iterations($group_id, array $parameters = []) ->setDefault('include_ancestors', true) ; + $resolver->setDefined('search'); + + $resolver->setDefined('in') + ->setAllowedTypes('in', 'array') + ->setAllowedValues('in', function (array $value) { + return \count($value) === \count(\array_filter($value, function ($item) { + return \is_string($item) && \in_array($item, ['title', 'cadence_title'], true); + })); + }); + return $this->get('groups/'.self::encodePath($group_id).'/iterations', $resolver->resolve($parameters)); }