Add priority to group based labels
Problem To Solve
When I'm standardizing my Group's labels within the top level Group, I want to be able to set the priority of the labels like I can within a Project's label list, so that all subgroups and projects inherit the label prioritization.
Force: It's super annoying that I have to go into every project and mark the same set of labels as priority labels. This is especially painful the more subgroups/projects my Group has.
Proposal
- Similar to projects, expose the ability to mark labels as Priority Labels.
- All Subgroups inherit the priority order of the closest parent by default.
- All Projects inherit the priority order of their parent Group (not by default, see "Fringe Cases")
- Subgroups or Projects can disable the inherited priority labels and set their own label prioritization.
- If "Inherit Label Priority" is enabled, the subgroup and project cannot prioritize any labels within that subgroup or project's label list.
Fringe Cases To Solve
- Once we introduce this feature with the behavior as described, it would potentially overwrite existing project label prioritization. As such, for those Projects with existing Priority Labels, the Inheritance should be disabled by default.
UX
Permissions
- Reporter and up, which aligns to the existing permissions for roles that are able to manage labels.
Tests
- Yes please.
Tier
- GitLab Starter given the likely buyer for this is a Manager or Director since this capability allows teams to maintain a standard prioritization of labels across many groups and projects.
Acceptance Criteria
-
Mark labels as "priority" within a Group's label list. -
Subgroups (and those that are deeply nested) and projects inherit the label priority from the closest parent group. -
The inheritance is enabled by default (except for the projects outlined in "Fringe cases") -
The inheritance can be disabled within a subgroup and project. -
When inheritance is enabled, the subgroup and project cannot prioritize labels within the subgroup and project's label list. -
Tests -
Pay down technical debt where appropriate
Edited by Gabe Weaver