# Labels and components

> Tag tasks with project labels, manage a project's labels, and set up components with a lead, a default team and automatic assignment.

Source: https://docs.sofiaspace.uz/tasks/labels-and-components/

Labels and components are two ways to sort a project's tasks:

- **Labels** are free tags such as `frontend`, `customer-request` or `q3`. A task can have any number of them. Anyone working in the project can create one on the spot.
- **Components** are the fixed parts of a product or service, such as "Billing" or "Mobile app". A task has at most one. A component can have a **lead** and a **default team**, so new tasks in it are owned, and optionally assigned, without anyone filling that in.

Both belong to one project. Another project has its own labels and components.

**Who can do this:** anyone in the project can add labels to tasks and create new labels from a task. Project Admins manage the project's label list and its components in **Project settings**. Included on every plan.

## Add labels to a task

1. Open the task.
2. In the details, find **Labels** and choose **Add a label**.
3. Type to search the project's labels. Click a label to add it; click it again to take it off.
4. To make a new label, type its name and choose **Create "name"** (or press Enter).

To remove a label from the task, choose the × on the label.

You can also pick labels in the **Create task** form, under **More fields → Labels**.

Each label's colour is worked out from its name, so the same label always looks the same everywhere. You can't pick a label's colour.

## Manage a project's labels

**Where:** **Project settings → Labels**. **Who:** Project Admins.

The list shows each label and how many tasks carry it.

- **Add label** — type a name and choose **Add label**. Names added here are saved in lower case.
- **Remove** — deletes the label and takes it off every task in the project. This happens at once, with no confirmation, and can't be undone.

Two labels in one project can't have the same name.

## Find tasks by label

- **View → Filter → Label** on the Board, Table, Backlog or Timeline. See [Filters and saved filters](https://docs.sofiaspace.uz/tasks/filters-and-saved-filters.md).
- Turn on the **Labels** card field (**View → Card fields**) to show labels on board cards.
- Add the **Labels** column to the Table (**View → Columns**).
- Dashboards can filter and group by label: **Add a filter → Labels**. See [Dashboards and reports](https://docs.sofiaspace.uz/tasks/dashboards-and-reports.md).

## Set up components

**Where:** **Project settings → Advanced → Components**. **Who:** Project Admins.

1. Choose **New component**.
2. Enter a **Name** (up to 120 characters, unique in the project) and an optional **Description**.
3. Optionally pick a **Lead** — any person in the workspace.
4. Optionally pick a **Default team**.
5. Optionally tick **Assign new tasks to the lead**. This needs a lead, and only applies when a new task has no assignee.
6. Choose **Create component**.

The list shows each component's lead, default team and number of tasks. Use **Edit** to change one, and **Archive** to retire it. Tick **Show archived** to see archived components and **Restore** them.

## Put a task in a component

1. Open the task.
2. In the details, set **Component** (it may be under **more fields**).

You can also choose **Component** in the **Create task** form, under **More fields**.

When you create a task in a component:

- If **Assign new tasks to the lead** is on and you left **Assignee** empty, the task is assigned to the component's lead.
- If the task has no team of its own, it's owned by the component's default team. Otherwise the project's **Default team** applies. See [Teams, team boards and initiatives](https://docs.sofiaspace.uz/tasks/teams-and-boards.md).

An archived component can't be chosen for new work. Tasks already in it keep it, shown as *Billing (archived)*.

## Use components across the project

- **Filter** — **View → Filter → Component**.
- **Card field and column** — the **Component** card field and the **Component** Table column.
- **Saved filters with their own sprints** — a saved filter can cover only certain components and run its own sprints. Useful when separate teams own separate parts of one project. See [Filters and saved filters](https://docs.sofiaspace.uz/tasks/filters-and-saved-filters.md).
- **Dashboards** — filter or group widgets by component.

## Labels or components?

| | Labels | Components |
| --- | --- | --- |
| Per task | Any number | One at most |
| Who creates them | Anyone in the project | Project Admins |
| Lead and default team | No | Yes |
| Automatic assignment | No | Optional |
| Archive and restore | No (remove only) | Yes |

## What you can't do

- You can't rename a label or change its colour in the app. Add a new label and remove the old one.
- Labels and components can't be shared between projects.
- A task can't be in two components.
- You can't delete a component, only archive it.
