Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
a231a678
Commit
a231a678
authored
Apr 22, 2019
by
Mike Lewis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Edits to scoped labels section
parent
b1364683
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
10 deletions
+9
-10
doc/user/project/labels.md
doc/user/project/labels.md
+9
-10
No files found.
doc/user/project/labels.md
View file @
a231a678
...
...
@@ -17,22 +17,21 @@ In GitLab, you can create project and group labels:
Scoped labels allow teams to use the simple and familiar feature of labels to
annotate their issues, merge requests, and epics to achieve custom fields and
custom workflow states
, by leveraging a special label title syntax to create those scopes
.
custom workflow states
by leveraging a special label title syntax
.
A scoped label is a
specific kind of label defined only by a special
colon syntax
in the label’s title,
namely
`key::value`
.
A scoped label is a
kind of label defined only by a special double-
colon syntax
in the label’s title,
using the format
`key::value`
. For example:
![
A sample scoped label
](
img/key_value_labels.png
)
A scoped label with a same key but with different value cannot be applied together
to an issue, epic or a merge request. For example, if an issue has
`priority::3`
already and you apply
`priority::2`
to it,
`priority::3`
automatically gets removed
from the issue.
Two scoped labels with the same key but a different value cannot simultaneeously
apply to an issue, epic, or merge request. For example, if an issue already has
`priority::3`
and you apply
`priority::2`
to it,
`priority::3`
is automatically removed from the issue.
### Workflows with scoped labels **[PREMIUM]**
Suppose you wanted a custom field in issues to track the platform operating system
that your features target,
and
each issue should only target one platform. You
that your features target,
where
each issue should only target one platform. You
would then create labels
`platform::iOS`
,
`platform::Android`
,
`platform::Linux`
,
etc., as necessary. Applying any one of these labels on a given issue would
automatically remove any other existing label that starts with
`platform::`
.
...
...
@@ -44,8 +43,8 @@ applied, and a developer wanted to advance the issue to `workflow::review`, they
would simply apply that label, and the
`workflow::development`
label would
automatically be removed. This behavior already exists when you move issues
across label lists in an
[
issue board
](
issue_board.md#creating-workflows
)
, but
now
team members who may not be working in an issue board directly,
would still
nonetheless
be able to advance workflow states consistently in issues themselves.
now
, team members who may not be working in an issue board directly
would still
be able to advance workflow states consistently in issues themselves.
## Creating labels
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment