Skip to content

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

Conversation

massimiliano96
Copy link
Contributor

Changes

Added support for iteration_id as an attribute when creating board lists.

@@ -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")
Copy link
Member

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

Copy link
Contributor Author

@massimiliano96 massimiliano96 May 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made a test using a simple curl:

image

But you are right I don't see any docs about this.

@@ -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")
Copy link
Member

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?

https://docs.gitlab.com/api/boards/#create-a-board-list

@JohnVillalovos JohnVillalovos merged commit 938b0d9 into python-gitlab:main May 14, 2025
19 checks passed
@JohnVillalovos
Copy link
Member

Thanks @massimiliano96

@massimiliano96
Copy link
Contributor Author

Happy to contribute! @JohnVillalovos

@massimiliano96 massimiliano96 deleted the iteration_id_as_boards_create_attribute branch May 14, 2025 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants