Skip to content

Cannot create/update group labels #698

@prokher

Description

@prokher

Description of the problem, including code/CLI snippet

Cannot find a way to manipulate group labels.

Attempt to update the group label trough the project.labels interface leads to the error.

Code snippet:

project = gl.projects.get(...)
labels = project.labels.list()
label = labels[0]
label.color = "#FFF"
label.save()

gives the error:

gitlab.exceptions.GitlabHttpError: 404: 404 Label not found Not Found

when the label belongs to the group, not to the project.

Specifications

  • python-gitlab version: 1.7.0
  • API version you are using (v3/v4): v4
  • Gitlab server version (or gitlab.com): 11.6.0-ee

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions