Promote Group Label to Parent Group
Problem to solve
Currently it's possible to promote project labels to group labels, but a group label can't be promoted again to the next higher group / parent group.
We have many use cases where we use 2-3 levels of GitLab groups to organize a customer's project. It looks like this:
Customer Project
Hardware 1
Specification
Datasheets
Documentation
PCB Design
Libraries
Lib 1
Lib 2
Specifications
Documentation
Firmware
Software
Meta-Project
We created group labels in Hardware 1
, but at some point in time it was decided to add another hardware subproject Hwardware 2
, which is implemented again as a subgroup in GitLab. At this point we need either:
- to create a new subgroup with all it's repos and manually recreate all group labels.
-> It's circa 100 labels. - write a script to copy labels
-> Not user friendly - promote the group labels to the next higher group
=> this proposal
Intended users
The user is the person setting up the GitLab project infrastructure like creating subgroups, repos and predefines labels based on the project type. Later it's the developer who extends the existing set of labels while project runtime with more specific labels.
Further details
Use Cases:
- A project with a subgroup has group labels on that subgroup level, due to the kind of labels, it was decided to not put them onto the main group, because the scope is limited to the subgroup only.
Later on, the project gets another subgroup, which needs the same labels as the first subgroup. Both sub groups should now share the labels for these reasons:- same label name, description, color style
- improved search on parent group over all subgroups
- reduced duplication
- allow to create a board on parent group to monitor both subgroups
- A group label was accidentally created on the subgroup, but not on the parent group. This could then be fixed by a single click + confirm.
Proposal
Add a "promote to parent group" option to group labels as you already implemented for project labels.