From 3cabe148c1d63ad71ec2fe1e35f36a8af967a4a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Victor=20Wu=20=F0=9F=8C=B4Vacation=20Feb=2010-18?= =?UTF-8?q?=F0=9F=8C=B4?= Date: Wed, 7 Feb 2018 15:17:00 +0000 Subject: Update docs labels CE --- doc/user/project/img/label_priority_sort_order.png | Bin 101667 -> 0 bytes .../project/img/labels_assign_label_sidebar.png | Bin 11767 -> 0 bytes .../img/labels_assign_label_sidebar_saved.png | Bin 9741 -> 0 bytes doc/user/project/img/labels_default.png | Bin 24404 -> 22975 bytes .../project/img/labels_description_tooltip.png | Bin 8538 -> 0 bytes doc/user/project/img/labels_filter.png | Bin 19071 -> 0 bytes doc/user/project/img/labels_generate.png | Bin 13628 -> 0 bytes doc/user/project/img/labels_generate_default.png | Bin 0 -> 65549 bytes doc/user/project/img/labels_group_issues.png | Bin 0 -> 264573 bytes doc/user/project/img/labels_list.png | Bin 0 -> 207736 bytes doc/user/project/img/labels_new_label.png | Bin 10720 -> 0 bytes .../project/img/labels_new_label_on_the_fly.png | Bin 4625 -> 0 bytes .../img/labels_new_label_on_the_fly_create.png | Bin 6389 -> 0 bytes doc/user/project/img/labels_prioritize.png | Bin 24194 -> 0 bytes doc/user/project/img/labels_prioritized.png | Bin 0 -> 156020 bytes doc/user/project/img/labels_promotion.png | Bin 0 -> 121824 bytes doc/user/project/img/labels_sidebar.png | Bin 0 -> 31123 bytes doc/user/project/img/labels_sidebar_assign.png | Bin 0 -> 28033 bytes doc/user/project/img/labels_sidebar_inline.png | Bin 0 -> 28423 bytes .../project/img/labels_sort_label_priority.png | Bin 0 -> 110154 bytes doc/user/project/img/labels_sort_priority.png | Bin 0 -> 108780 bytes doc/user/project/img/labels_subscribe.png | Bin 5336 -> 0 bytes doc/user/project/img/labels_subscriptions.png | Bin 0 -> 87502 bytes doc/user/project/img/new_label_from_sidebar.gif | Bin 0 -> 759243 bytes doc/user/project/labels.md | 189 ++++++++------------- 25 files changed, 70 insertions(+), 119 deletions(-) delete mode 100644 doc/user/project/img/label_priority_sort_order.png delete mode 100644 doc/user/project/img/labels_assign_label_sidebar.png delete mode 100644 doc/user/project/img/labels_assign_label_sidebar_saved.png delete mode 100644 doc/user/project/img/labels_description_tooltip.png delete mode 100644 doc/user/project/img/labels_filter.png delete mode 100644 doc/user/project/img/labels_generate.png create mode 100644 doc/user/project/img/labels_generate_default.png create mode 100644 doc/user/project/img/labels_group_issues.png create mode 100644 doc/user/project/img/labels_list.png delete mode 100644 doc/user/project/img/labels_new_label.png delete mode 100644 doc/user/project/img/labels_new_label_on_the_fly.png delete mode 100644 doc/user/project/img/labels_new_label_on_the_fly_create.png delete mode 100644 doc/user/project/img/labels_prioritize.png create mode 100644 doc/user/project/img/labels_prioritized.png create mode 100644 doc/user/project/img/labels_promotion.png create mode 100644 doc/user/project/img/labels_sidebar.png create mode 100644 doc/user/project/img/labels_sidebar_assign.png create mode 100644 doc/user/project/img/labels_sidebar_inline.png create mode 100644 doc/user/project/img/labels_sort_label_priority.png create mode 100644 doc/user/project/img/labels_sort_priority.png delete mode 100644 doc/user/project/img/labels_subscribe.png create mode 100644 doc/user/project/img/labels_subscriptions.png create mode 100644 doc/user/project/img/new_label_from_sidebar.gif (limited to 'doc/user/project') diff --git a/doc/user/project/img/label_priority_sort_order.png b/doc/user/project/img/label_priority_sort_order.png deleted file mode 100644 index 21c7a76a322..00000000000 Binary files a/doc/user/project/img/label_priority_sort_order.png and /dev/null differ diff --git a/doc/user/project/img/labels_assign_label_sidebar.png b/doc/user/project/img/labels_assign_label_sidebar.png deleted file mode 100644 index d74796fdb4d..00000000000 Binary files a/doc/user/project/img/labels_assign_label_sidebar.png and /dev/null differ diff --git a/doc/user/project/img/labels_assign_label_sidebar_saved.png b/doc/user/project/img/labels_assign_label_sidebar_saved.png deleted file mode 100644 index dabffe956dc..00000000000 Binary files a/doc/user/project/img/labels_assign_label_sidebar_saved.png and /dev/null differ diff --git a/doc/user/project/img/labels_default.png b/doc/user/project/img/labels_default.png index 7934e3bfb5e..7a7fab611a4 100644 Binary files a/doc/user/project/img/labels_default.png and b/doc/user/project/img/labels_default.png differ diff --git a/doc/user/project/img/labels_description_tooltip.png b/doc/user/project/img/labels_description_tooltip.png deleted file mode 100644 index eea4f8cf0f4..00000000000 Binary files a/doc/user/project/img/labels_description_tooltip.png and /dev/null differ diff --git a/doc/user/project/img/labels_filter.png b/doc/user/project/img/labels_filter.png deleted file mode 100644 index 6a1ebfc2ecb..00000000000 Binary files a/doc/user/project/img/labels_filter.png and /dev/null differ diff --git a/doc/user/project/img/labels_generate.png b/doc/user/project/img/labels_generate.png deleted file mode 100644 index 987f4b5be71..00000000000 Binary files a/doc/user/project/img/labels_generate.png and /dev/null differ diff --git a/doc/user/project/img/labels_generate_default.png b/doc/user/project/img/labels_generate_default.png new file mode 100644 index 00000000000..fca2a06e04f Binary files /dev/null and b/doc/user/project/img/labels_generate_default.png differ diff --git a/doc/user/project/img/labels_group_issues.png b/doc/user/project/img/labels_group_issues.png new file mode 100644 index 00000000000..29dcf7ff45e Binary files /dev/null and b/doc/user/project/img/labels_group_issues.png differ diff --git a/doc/user/project/img/labels_list.png b/doc/user/project/img/labels_list.png new file mode 100644 index 00000000000..12c47ea9766 Binary files /dev/null and b/doc/user/project/img/labels_list.png differ diff --git a/doc/user/project/img/labels_new_label.png b/doc/user/project/img/labels_new_label.png deleted file mode 100644 index e26425d0188..00000000000 Binary files a/doc/user/project/img/labels_new_label.png and /dev/null differ diff --git a/doc/user/project/img/labels_new_label_on_the_fly.png b/doc/user/project/img/labels_new_label_on_the_fly.png deleted file mode 100644 index 2ac9805b1ab..00000000000 Binary files a/doc/user/project/img/labels_new_label_on_the_fly.png and /dev/null differ diff --git a/doc/user/project/img/labels_new_label_on_the_fly_create.png b/doc/user/project/img/labels_new_label_on_the_fly_create.png deleted file mode 100644 index 02ccf68553b..00000000000 Binary files a/doc/user/project/img/labels_new_label_on_the_fly_create.png and /dev/null differ diff --git a/doc/user/project/img/labels_prioritize.png b/doc/user/project/img/labels_prioritize.png deleted file mode 100644 index d602a3c90ec..00000000000 Binary files a/doc/user/project/img/labels_prioritize.png and /dev/null differ diff --git a/doc/user/project/img/labels_prioritized.png b/doc/user/project/img/labels_prioritized.png new file mode 100644 index 00000000000..57dcfe89b3d Binary files /dev/null and b/doc/user/project/img/labels_prioritized.png differ diff --git a/doc/user/project/img/labels_promotion.png b/doc/user/project/img/labels_promotion.png new file mode 100644 index 00000000000..8a5efd210a2 Binary files /dev/null and b/doc/user/project/img/labels_promotion.png differ diff --git a/doc/user/project/img/labels_sidebar.png b/doc/user/project/img/labels_sidebar.png new file mode 100644 index 00000000000..7349c6d4f0c Binary files /dev/null and b/doc/user/project/img/labels_sidebar.png differ diff --git a/doc/user/project/img/labels_sidebar_assign.png b/doc/user/project/img/labels_sidebar_assign.png new file mode 100644 index 00000000000..61e8d04fc85 Binary files /dev/null and b/doc/user/project/img/labels_sidebar_assign.png differ diff --git a/doc/user/project/img/labels_sidebar_inline.png b/doc/user/project/img/labels_sidebar_inline.png new file mode 100644 index 00000000000..31fa397761d Binary files /dev/null and b/doc/user/project/img/labels_sidebar_inline.png differ diff --git a/doc/user/project/img/labels_sort_label_priority.png b/doc/user/project/img/labels_sort_label_priority.png new file mode 100644 index 00000000000..c8b97639121 Binary files /dev/null and b/doc/user/project/img/labels_sort_label_priority.png differ diff --git a/doc/user/project/img/labels_sort_priority.png b/doc/user/project/img/labels_sort_priority.png new file mode 100644 index 00000000000..a95198e7f72 Binary files /dev/null and b/doc/user/project/img/labels_sort_priority.png differ diff --git a/doc/user/project/img/labels_subscribe.png b/doc/user/project/img/labels_subscribe.png deleted file mode 100644 index 56f24ae7bc8..00000000000 Binary files a/doc/user/project/img/labels_subscribe.png and /dev/null differ diff --git a/doc/user/project/img/labels_subscriptions.png b/doc/user/project/img/labels_subscriptions.png new file mode 100644 index 00000000000..8bcb3b57f6c Binary files /dev/null and b/doc/user/project/img/labels_subscriptions.png differ diff --git a/doc/user/project/img/new_label_from_sidebar.gif b/doc/user/project/img/new_label_from_sidebar.gif new file mode 100644 index 00000000000..572b29a86e1 Binary files /dev/null and b/doc/user/project/img/new_label_from_sidebar.gif differ diff --git a/doc/user/project/labels.md b/doc/user/project/labels.md index d7eb4bca89c..49f7baf9652 100644 --- a/doc/user/project/labels.md +++ b/doc/user/project/labels.md @@ -1,174 +1,125 @@ # Labels -Labels provide an easy way to categorize the issues or merge requests based on -descriptive titles like `bug`, `documentation` or any other text you feel like. -They can have different colors, a description, and are visible throughout -the issue tracker or inside each issue individually. +## Overview -With labels, you can navigate the issue tracker and filter any bloated -information to visualize only the issues you are interested in. Let's see how -that works. +Labels allow you to categorize issues or merge requests using descriptive titles like `bug`, `feature request`, or `docs`. Each label also has a customizable color. They allow you to quickly and dynamically filter and manage issues or merge requests you care about, and are visible throughout GitLab in most places where issues and merge requests are located. -## Create new labels +## Project labels and group labels + +In GitLab, you can create project and group labels: + +- **Project labels** can be assigned to issues or merge requests in that project only. +- **Group labels** can be assigned to any issue or merge request of any project in that group. +- In the [future](https://gitlab.com/gitlab-org/gitlab-ce/issues/40915), you will be able to assign group labels to issues and merge reqeusts of projects in [subgroups](../group/subgroups/index.md). + +## Creating labels >**Note:** -A permission level of `Developer` or higher is required in order to manage -labels. +A permission level of `Developer` or higher is required in order to create labels. -Head over a single project and navigate to **Issues > Labels**. +### New project label -The first time you visit this page, you'll notice that there are no labels -created yet. +To create a **project label**, navigate to **Issues > Labels** in the project. -Creating a new label from scratch is as easy as pressing the **New label** -button. From there on you can choose the name, give it an optional description, -a color and you are set. +Click the **New label** button. Enter the title, an optional description, and the background color. Click **Create label** to create the label. -When you are ready press the **Create label** button to create the new label. +If a project has no labels, you can generate a default set of project labels from its empty label list page: -![New label](img/labels_new_label.png) +![Labels generate default](img/labels_generate_default.png) ---- +GitLab will add the following default labels to the project: -## Default labels +![Labels default](img/labels_default.png) -The very first time you visit the labels area, it's gonna be empty. In that -case, it's possible to populate the labels for your project from a set of -predefined labels. +### New group label -Click the link to 'Generate a default set of labels' and GitLab will -generate them for you. There are 8 default generated labels in total: +To create a **group label**, follow similar steps from above to project labels. Navigate to **Issues > Labels** in the group and create it from there. -- bug -- confirmed -- critical -- discussion -- documentation -- enhancement -- suggestion -- support +Group labels appear in every label list page of the group's child projects. -## Labels Overview +![Labels list](img/labels_list.png) -![Default generated labels](img/labels_default.png) +### New project label from sidebar -You can see that from the labels page you can have an overview of the number of -issues and merge requests assigned to each label. +From the sidebar of an issue or a merge request, you can create a create a new **project label** inline immediately, instead of navigating to the project label list page. -## Prioritize labels +![Labels inline](img/new_label_from_sidebar.gif) ->**Notes:** -> -> - Introduced in GitLab 8.9. -> - Priority sorting is based on the highest priority label only. This might -> change in the future, follow the discussion in -> https://gitlab.com/gitlab-org/gitlab-ce/issues/18554. +## Editing labels -Prioritized labels are like any other label, but sorted by priority. This allows -you to sort issues and merge requests by label priority. +NOTE: **Note:** +A permission level of `Developer` or higher is required in order to edit labels. -To prioritize labels, navigate to your project's **Issues > Labels** and click -on the star icon next to them to put them in the priority list. Click on the -star icon again to remove them from the list. +You can update a label by navigating to **Issues > Labels** in the project ot group and clicking the pencil icon. -From there, you can drag them around to set the desired priority. Priority is -set from high to low with an ascending order. Labels with no priority, count as -having their priority set to null. +You can delete a label by clicking the trash icon. -![Prioritize labels](img/labels_prioritize.png) +### Promoting project labels to group labels -Now that you have labels prioritized, you can use the 'Label priority' and 'Priority' -sort orders in the issues or merge requests tracker. +If you are expanding from a few projects to a larger number of projects within the same group, you may want to share the same label among multiple projects in the same group. If you previously created a project label and now want to make it available for other projects, you can promote it to a group label. -In the following, everything applies to both issues and merge requests, but we'll -refer to just issues for brevity. +From the project label list page, you can promote a project label to a group label. This will merge all project labels across all projects in this group with the same name into a single group label. All issues and merge requests that previously were assigned one of these project labels will now be assigned the new group label. This action cannot be reversed and the changes are permanent. -The 'Label priority' sort order positions issues with higher priority labels -toward the top, and issues with lower priority labels toward the bottom. A non-prioritized -label is considered to have the lowest priority. For a given issue, we _only_ consider the -highest priority label assigned to it in the comparison. ([We are discussing](https://gitlab.com/gitlab-org/gitlab-ce/issues/18554) -including all the labels in a given issue for this comparison.) Given two issues -are equal according to this sort comparison, their relative order is equal, and -therefore it's not guaranteed that one will be always above the other. +![Labels promotion](img/labels_promotion.png) -![Label priority sort order](img/label_priority_sort_order.png) +## Assigning labels from the sidebar -The 'Priority' sort order comparison first considers an issue's milestone's due date, -(if the issue is assigned a milestone and the milestone's due date exists), and then -secondarily considers the label priority comparison above. Sooner due dates results -a higher sort order. If an issue doesn't have a milestone due date, it is equivalent to -being assigned to a milestone that has a due date in the infinite future. Given two issues -are equal according to this two-stage sort comparison, their relative order is equal, and -therefore it's not guaranteed that one will be always above the other. +Every issue and merge request can be assigned any number of labels. The labels are visible on every issue and merge request page, in the sidebar. They are also visible in the issue board. From the sidebar, you can assign or unassign a label to the object (i.e. label or unlabel it). You can also perform this as a [quick action](quick_actions.md) in a comment. -![Priority sort order](img/priority_sort_order.png) +| View labels in sidebar | Assign labels from sidebar | +|:---:|:---:| +| ![Labels sidebar](img/labels_sidebar.png) | ![Labels sidebar assign](img/labels_sidebar_assign.png) | +## Filtering issues and merge requests by label -## Subscribe to labels +### Filtering in list pages -If you don’t want to miss issues or merge requests that are important to you, -simply subscribe to a label. You’ll get notified whenever the label gets added -to an issue or merge request, making sure you don’t miss a thing. +From the project issue list page and the project merge request list page, you can [filter](../search/index.md#issues-and-merge-requests) by both group labels and project labels. -Go to your project's **Issues > Labels** area, find the label(s) you want to -subscribe to and click on the eye icon. Click again to unsubscribe. +From the group issue list page and the group merge request list page, you can [filter](../search/index.md#issues-and-merge-requests) by both group labels and project labels. -![Subscribe to labels](img/labels_subscribe.png) +![Labels group issues](img/labels_group_issues.png) -If you work on a large or popular project, try subscribing only to the labels -that are relevant to you. You’ll notice it’ll be much easier to focus on what’s -important. +### Filtering in issue boards -## Create a new label when inside an issue +- From [project boards](issue_board.md), you can filter by both group labels and project labels in the [search and filter bar](../search/index.md#issue-boards). -There are times when you are already inside an issue searching to assign a -label, only to realize it doesn't exist. Instead of going to the **Labels** -page and being distracted from your original purpose, you can create new -labels on the fly. +## Subscribing to labels -Expand the issue sidebar and select **Create new label** from the labels dropdown -list. Provide a name, pick a color and hit **Create**. The new label will be -ready to used right away! +From the project label list page and the group label list page, you can subscribe to [notifications](../../workflow/notifications.md) of a given label, to alert you that that label has been assigned to an issue or merge request. -![New label on the fly](img/labels_new_label_on_the_fly.png) +![Labels subscriptions](img/labels_subscriptions.png) -## Assigning labels to issues and merge requests +## Label priority -There are generally two ways to assign a label to an issue or merge request. +>**Notes:** +> +> - Introduced in GitLab 8.9. +> - Priority sorting is based on the highest priority label only. [This discussion](https://gitlab.com/gitlab-org/gitlab-ce/issues/18554) considers changing this. -The first one is to assign a label when you first create or edit an issue or -merge request. +Labels can have relative priorities, which are used in the "Label priority" and "Priority" sort orders of the issue and merge request list pages. -The second way is by using the right sidebar when inside an issue or merge -request. Expand it and hit **Edit** in the labels area. Start typing the name -of the label you are looking for to narrow down the list, and select it. You -can add more than one labels at once. When done, click outside the sidebar area -for the changes to take effect. +From the project label list page, star a label to indicate that it has a priority. Drag starred labels up and down to change their priority. Higher means higher priority. Prioritization happens at the project level, only on the project label list page, and not on the group label list page. However, both project and group labels can be prioritized on the project label list page since both types are displayed on the project label list page. -![Assign label in sidebar](img/labels_assign_label_sidebar.png) -![Save labels in sidebar](img/labels_assign_label_sidebar_saved.png) +![Labels prioritized](img/labels_prioritized.png) ---- +On the project and group issue and merge request list pages, you can sort by `Label priority` and `Priority`, which account for objects (issues and merge requests) that have prioritized labels assigned to them. -To remove labels, expand the left sidebar and unmark them from the labels list. -Simple as that. +If you sort by `Label priority`, GitLab considers this sort comparison order: -## Use labels to filter issues +- Object with a higher priority prioritized label. +- Object without a prioritized label. -Once you start adding labels to your issues, you'll see the benefit of it. -Labels can have several uses, one of them being the quick filtering of issues -or merge requests. +Ties are broken arbitrarily. (Note that we _only_ consider the highest prioritized label in an object, and not any of the lower prioritized labels. [This discussion](https://gitlab.com/gitlab-org/gitlab-ce/issues/18554) considers changing this.) -Pick an existing label from the dropdown _Label_ menu or click on an existing -label from the issue tracker. In the latter case, you also get to see the -label description like shown below. +![Labels sort label priority](img/labels_sort_label_priority.png) -![Filter labels](img/labels_filter.png) +If you sort by `Priority`, GitLab considers this sort comparison order: ---- +- Object's assigned [milestone](milestones/index.md)'s due date is sooner, provided the object has a milestone and the milestone has a due date. If this isn't the case, consider the object having a due date in the infinite future. +- Object with a higher priority prioritized label. +- Object without a prioritized label. -And if you added a description to your label, you can see it by hovering your -mouse over the label in the issue tracker or wherever else the label is -rendered. +Ties are broken arbitrarily. -![Label tooltips](img/labels_description_tooltip.png) +![Labels sort priority](img/labels_sort_priority.png) -- cgit v1.2.1