Working with Tags
  • 15 Apr 2024
  • 6 Minutes to read
  • Dark
    Light
  • PDF

Working with Tags

  • Dark
    Light
  • PDF

Article Summary

Use tags to assign context to your assets for granular filters and queries. Apply new or existing tags to the selected assets. The list of selected tags is applied to all selected assets. Therefore, tagging may result in the removal of existing tags from one or from several of the selected assets.

  • A partial tag indicator is displayed when some but not all of the selected assets are tagged.
  • New, checked, partial, and unchecked tags are sorted and displayed in different sections. Displayed from top to bottom are: newly created tags, checked tags, partial tags, and unchecked tags.
  • "New" is displayed when you add new tags.
Note:

To work with tags on a given page, you must have the 'Edit tags and custom data' permission enabled for that page.

AddTag1N

Note:

The Tag list does not reflect the tag hierarchy.

Adding Tags to Assets

To add tags to selected assets

  1. Select one or more assets; the Actions menu is enabled.
  2. From the Actions menu, choose Tag; the Tag dialog for the relevant asset opens.

TagDevices.png

  1. Either select an existing tag or add a new tag.

  2. To add a new tag, enter the tag name and click Add New.

  3. You can set a color for the tag. From the color dropdown, select a color for the tag background. The default background color is white.

  4. Click Save.

The new tag name is displayed, with a label New next to it.
You can also add an automatic expiration date for the tags. Learn more about Setting Automatic Expiration Dates for Tags.

Note:

Users with Admin permissions can manage all tags in the system. Click Manage Tags. The Manage Tags page opens.

Adding Tags to Query or Filter Results with a Quick Enforcement Action

You can use a quick Enforcement Action to add tags to all assets returned by a query.

To add tags to all assets using an Enforcement Action

  1. On the assets page, run a saved query or filter the asset list.

  2. From the EC Actions menu, select Tag; the Tag dialog opens.

  3. In the Enforcement Set Name field, a default value is provided. You can change this to fit your needs.

  4. Enter one or more tag names and if needed select a tag color. See Setting Colors for Tags.

  5. To have this tag removed from assets that do not match the query parameters, select Remove this tag from entities not found in the saved query results. A safeguard is displayed. Click Confirm if you want to continue.

  6. It is possible to select an expiration date. See Setting an Automatic Expiration Date for Tags.

  7. To run this Enforcement Set on a schedule, toggle on Set Scheduling and configure the schedule you want. See Scheduling Enforcement Set Runs.

  8. Click Save and Run.

Setting Colors for Tags

You can set colors for the tag, change colors, and remove a selected color. Color selection applies to the tag globally.

To work with colors

  1. Select an asset.
  2. From the Actions dropdown, select Tag.

Adding a color

  • From the color dropdown, select a color for the tag background. The default background color is white. Select Save.

Changing the color of a tag

  • From the color dropdown next to the relevant tag, choose a new color, and then click Save.

Removing the Color from a Tag

  • From the color drop-down next to the relevant tag, choose the white background, and then click Save.

Setting an Automatic Expiration Date for Tags

You can set an automatic expiration date for a tag or group of tags. The expiration date applies only to the selected assets. In this way, you can add a tag to an asset for a defined period of time; once the defined time ends, the tag is automatically removed. This can be useful for instance, if you have a system that cannot be patched for a specific period of time.

You can create a saved query that excludes this specific tag. As a result, tagged assets are not included in reports and dashboards using that saved query for the set time, until the tag expires.

  1. Select one or more assets.
  2. From the Actions menu, choose Tag; the Tag dialog for the relevant asset opens.
  3. Choose an existing tag name, or click Add New to create a new one.
  4. Click Add Expiration Date; a context menu opens.

AddExpirationDate.png

  1. Select Specific Date or Days From Now.

Setting a Specific Date

  1. A date picker opens
  2. Choose a date.

Expires on now appears next to the Tag.
ExpiresOn.png

  1. Click Save.

Setting Days From Now

  1. Select Days From Now; the date calculator opens.

DateRoller.png

  1. Select the number of days from now for the tag to expire. The date below changes accordingly.

  2. Click Save.

Deleting an Expiration Date

You can delete an expiration date.

  1. Select one or more assets.
  2. From the Actions menu, select Tag.
  3. Hover over the expiration date that you want to delete, and select Delete Expiration Date.

Delete Expiration.png

Changing an Expiration Date

You can change an expiration date

  1. Select one or more assets.
  2. From the actions menu select Tag.
  3. Select Edit Expiration Date.

Delete Expiration.png

  1. The date menu opens. Set a new date as required.
Note:

If you choose a number of assets, which have different tags with different expiration dates, you can't delete or edit the dates.

Viewing Information About Tags

Add columns to display information about Tags on an asset page.

Tags

  1. Tags Metadata - complex field with the name of the tag, the date it was created and the date the tag was last updated.
  2. Tags Metadata: Name - the tag name.
  3. Tags Metadata: Created On - the date the tag was created.
  4. Tags Metadata: Last Updated - the date the tag was last updated.

The Assets page shows information about when tags were created and updated.

Auto-Expiring Tags

  1. Auto-Expiring Tags - complex field with all auto-expiring tag names and their expiration dates.
  2. Auto-Expiring Tags: Name - the names of the auto-expiring tags
  3. Auto-Expiring Tags: Expiration Date - the expiration dates of the auto-expiring tags.

The Assets page then shows the list of tags that you have on your system, and information about expiration dates. An asset may have more than one tag when each tag has a different expiration date.
DEvicePAge with tags.png

Mouse over the Auto-Expiring Tags column to see when each tag on an asset expires.

MouseOverTags.png

View more information about tags on your system on the Asset Profile Page.

Clearing Tags from Assets

You can clear or delete tags from assets.
To delete tags from assets

  1. Select one or more assets.

  2. From the Actions menu, choose Tag; the Tag dialog for the relevant asset opens.

  3. The tags on the asset are shown as selected.
    CleraTag.png

  4. Clear the checkbox and click Save. The tags are now removed from the selected assets.

Creating Queries for Tags in Hierarchical Structure

You can group tags into a hierarchical structure, as described in Managing Tags from the Tag Hierarchy.

You can use the Query Wizard ButtonQueryWizard to define a query that returns all assets with specific tags and their child tags, using the 'in tag group' operator, provided the searched tag is defined in the Hierarchical structure with child tags. You can also search for all assets with specific tags that are defined on the lowest level of the hierarchy (i.e., without any child tags). In this case, only assets with that specific tag are returned. Learn more about Creating Queries with the Query Wizard.

For example, in the Tag Hierarchy below, the parent tag USA is defined with child tags Washington and Virginia.

USA_Tags

You can create a query on the Users page to search for all users with Tags in tag group USA.

InTagGroupOperator

This query returns all users with the USA tag, as well as users with the Virginia and Washington tags.

InTagGroupQueryResults

<br>

Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.