[Solved] Duplicated labels when creating a new project

Duplicated labels

I am running a self-managed gitlab.
I created global labels under /admin/labels, e.g. bug, task, feature.
We are happy with global labels and that is what we want to use for all new projects.

Now, we are running into the situation,
that every time we create a new project, gitlab duplicates our “global” labels in the new created project.

This results in duplicate labels, when the project maintainer opens the project label admin page:

/group/sub-group/project/-/labels

The we see the global label “bug” and a duplicate entry “/group/sub-group/project/bug”.

Or when a user create a new issue and want to choose a label, they see every label twice:

We are aware, that there are
default labels, which we do not want to use.
We are aware of defining group labels, which we do not want to use, as it means copy/paste of labels into every new group.
We are aware of project-specific labels, which we do not want to use, as it means copy/paste of labels into every new project.

Our current workaround at the moment is to delete all duplicated labels, manually. Every time we create a new project.

No idea, if there is any option or workaround to prevent those duplicate labels.

Versions

  • Self-managed

We checked out discussion on the roadmap,

which might be related, but we believe this sounds like a bug or we missed a config settings somewhere.

I found a way how to solve the duplicate labels, when creating new projects:

Not using global labels (/admin/labels).

Workaround:

  1. delete all global labels (/admin/labels)
  2. create the labels in the “root” group only

This shows the labels of the “root” group in

  • group/subgroup/project1

I had to use the the “root” group labels only instead of the global labels, because
otherwise the labels would also not be available in “root” group issue boards.

Issue solved.