Skip to content

Create a issue board list by milestone_id still depends on label_id #1897

Description

@kurisukun

Description of the problem, including code/CLI snippet

I followed the API documentation which says that the usage of label_id, milestone_id and assignee_id is mutually exclusive. So I wanted to create a board which would relate on milestones to have a timeline. The function goes like:

def create_board(repository):
  milestones = repository.milestones.list()
  for milestone in milestones:
    print(f'ID: {milestone.id}')
    timeline_board.lists.create({
      'milestone_id': milestone.id
    })

Expected Behavior

Normally the board should be created according to the documentation.

Actual Behavior

AttributeError: Missing attributes: label_id

Specifications

  • python-gitlab==3.1.1
  • Gitlab server version (or gitlab.com): 14.2.4-ee

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions