Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@massimiliano96
Copy link
Contributor

Changes

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

_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.

_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