Add, Remove and Search for Labels
- At the bottom of the page, choose Edit labels or hit L on your keyboard
- Type in a new label (existing labels are suggested as you type)
- Choose Add
If you're editing or creating a page, and you want to add labels, choose the Edit label icon at the top of the page.
Labels can't contain spaces, are lower case, and can contain a maximum of 255 characters. You can add multiple labels by adding a space between each label, any capitals will be automatically converted to lower case. If you want a label to include more than one word, use an underscore or hyphen (the only two special characters that labels accept). For example this_is_a_label or this-is-a-label.
Label an attachment
- Do either of the following:
- Go to the page that contains the attachment and choose
- Go to the space and choose Space tools > Content Tools from the bottom of the sidebar, then choose Attachments
- Choose the Edit label icon beside the list of labels and type in a new label (existing labels are suggested as you type)
- Choose Add
You can also add labels in a list of attachments displayed by the Attachments macro, by choosing the edit icon beside each label.
If you add one or more labels to a template, that label will be copied to the page when someone adds a page based on that template. See Creating a Template.
The Labeled content page
If you're viewing a page or post that has labels or displays the Attachments macro, you can choose any label to go to the Labeled content page for the space. Choose Popular Labels or All Labels from the cog at the top-right – to view the most-used labels or all labels in the space – or choose See content from all spaces from the cog to view labeled content from all spaces in your Confluence site.
Screenshot: The Labeled content page
The Popular Labels option displays a word cloud, where the bigger a label is displayed, the more popular it is. Choose any label to view content tagged with that label.
You can also navigate to the labels view for a space by entering the following URL (replace SPACEKEY with the space's key):
<your.Confluence.site>/labels/listlabels-alphaview.action?key=SPACEKEY
Search by label
You can use the ' labelText:
' prefix to search specifically for content that has a specific label. For example, if you're looking for pages with the label 'chocolate', type labelText:chocolate
into the search field in the Confluence header. For more examples of searching by label, see Confluence Search Syntax.
Search for labeled pages using a URL
Entering a URL with an appended label or labels is another way to search for pages with particular labels.
In your browser's address bar, enter the following URL and press enter: http://<your.Confluence.site>/label/foo+bar
The Labeled content page will load, showing search results for pages with the both labels, 'foo' and 'bar'. Replace 'foo' and 'bar' with the label(s) you want to search for, and separate multiple labels with a +
symbol.
Adding a label to your results:
Once you're on the Labeled content page, you can add more labels to your search by choosing them from the Related Labels list at the top-right of the page. Each label is listed with a plus (+) sign.
If you want to remove labels from your search, locate the included labels at the top of the page and choose the label(s) you want to remove. Each included label will be listed with a minus (–) sign.
Remove labels
When viewing page, blog post, or attachment labels, an x appears alongside each label. Choose the x to remove the label.
You can't remove, consolidate or manage labels directly. A label is created by adding it to a page for the first time, and ceases to exist once it's been removed from all pages it was added to.
If you have deleted pages that contain a label, you may need to purge the deleted pages from the space's trash to ensure that the label disappears too.
If you are using the Labels List Macro, the appearance of labels from deleted pages is considered a bug. Track the issue at CONFSERVER-55441 - Getting issue details... STATUS