-
Notifications
You must be signed in to change notification settings - Fork 670
feat(api): add iteration_id as boards create attribute #3191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(api): add iteration_id as boards create attribute #3191
Conversation
@@ -23,7 +23,7 @@ class GroupBoardListManager(CRUDMixin[GroupBoardList]): | |||
_obj_cls = GroupBoardList | |||
_from_parent_attrs = {"group_id": "group_id", "board_id": "id"} | |||
_create_attrs = RequiredOptional( | |||
exclusive=("label_id", "assignee_id", "milestone_id") | |||
exclusive=("label_id", "assignee_id", "milestone_id", "iteration_id") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to the docs I don't see that iteration_id
is mutually exclusive. Can you confirm? Though for group they don't mention that any of them are mutually exclusive but project does.
https://docs.gitlab.com/api/group_boards/#new-group-issue-board-list
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -48,7 +48,7 @@ class ProjectBoardListManager(CRUDMixin[ProjectBoardList]): | |||
_obj_cls = ProjectBoardList | |||
_from_parent_attrs = {"project_id": "project_id", "board_id": "id"} | |||
_create_attrs = RequiredOptional( | |||
exclusive=("label_id", "assignee_id", "milestone_id") | |||
exclusive=("label_id", "assignee_id", "milestone_id", "iteration_id") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to the docs I don't see that iteration_id
is mutually exclusive. Can you confirm?
Thanks @massimiliano96 |
Happy to contribute! @JohnVillalovos |
Changes
Added support for iteration_id as an attribute when creating board lists.