# Tickets, customers, and configuration items

> Link an OTOBO ticket, customer, or customer user to a configuration item and show that item in the agent zoom.

- HTML: https://otobo-docs.softoft.de/en/other/cmdb/tickets-and-customers/
- Markdown: https://otobo-docs.softoft.de/en/other/cmdb/tickets-and-customers.md

You link configuration item records to the work in the queue. The CMDB pays for itself when a ticket, a customer, and an asset are the same conversation. OTOBO links all three. The asset model uses reference fields. The work uses a link on the configuration item zoom.

![A ticket about a printer, linked to configuration item Printer PR-14, whose owner is a customer user.](../../../../../assets/cmdb/cmdb-ticket-link.jpg)

_Ticket 1042 is work. Printer PR-14 is the asset. Anna Klein is the customer user who owns it._

## Two different connections

```mermaid
flowchart LR
  Ticket["Ticket 1042"] -->|zoom link| CI["Printer PR-14"]
  CI -->|Customer User reference| Person["Anna Klein"]
  CI -->|ConfigItem reference| Room["Room: Floor 2"]
  Person --> Widget["Customer User Information Center"]
```

| Connection                       | Mechanism                                         | Lifetime                       |
| -------------------------------- | ------------------------------------------------- | ------------------------------ |
| This ticket is about this asset  | Link from the config item zoom menu to the ticket | One piece of work              |
| This person owns this asset      | Reference field, target Customer User             | As long as the ownership lasts |
| This company pays for this asset | Reference field, target Customer                  | As long as the contract lasts  |
| This asset sits in that room     | Reference field, target ConfigItem                | The dependency chain           |

Do not encode "open tickets" as a text field on the item. The link list is that field.

## Link the ticket from the zoom

1. Create or open the ticket as usual.
2. Open the configuration item.
3. Use the link action in the zoom menu and choose the ticket.
4. Back on the ticket, the agent can see which asset the queue is actually fixing.

The configuration reference for the package documents the menu entry that allows linking a configuration item with another object in the agent zoom. If the action is missing, check that the agent is in **itsm-configitem** and that the menu setting is active. Class setup is on [classes and items](https://otobo-docs.softoft.de/en/other/cmdb/classes-and-items/).

When several tickets hit the same item in one week, that is a problem-management signal. The item is the common parent. The tickets stay separate.

## Customer and customer user

Set the reference on the class, not by typing a name into a note.

- **Customer** — the company or department. The item shows in the **Customer Information Center**.
- **Customer user** — the person. The item shows in the **Customer User Information Center**.

An agent who opens the customer then sees the assets beside the tickets. That is the screen you want on a call: who is calling, what they own, what is already open.

## What customers are allowed to open

Customer access is optional and closed until you enable it. In the system configuration, switch on:

- `CustomerFrontend::Module###CustomerITSMConfigItem`
- `CustomerFrontend::Module###CustomerITSMConfigItemSearch`
- `CustomerFrontend::Module###CustomerITSMConfigItemZoom`

Then set who may see which items in `Customer::ConfigItem::PermissionConditions###01`. The manual's section on permissions and access restrictions shows how to narrow that condition. A safe default is "the customer user sees items that reference them", not "every item in the class".

Pages in the class definition decide the rest. A page with `Interfaces: [Agent]` stays internal. Add `Customer` only to pages that are safe to show, such as name, room, and a short description. Leave purchase price and license keys on an agent-only page. `Groups` can hide a page from agents as well, for example an accounting group.

List columns for the customer overview use `ITSMConfigItem::Frontend::CustomerITSMConfigItem###ClassColumnsAvailable` and `ClassColumnsDefault`.

## A short path for a real call

1. The customer user writes "the printer on floor 2 does not print".
2. The agent opens the customer user and sees Printer PR-14 in the information center.
3. The agent links ticket 1042 to PR-14.
4. The agent opens the dependency chain: the printer references a print server. If the print server is down, other printers on that server are the impact. See [relations and impact](https://otobo-docs.softoft.de/en/other/cmdb/relations-and-impact/).
5. The fix is noted on the ticket. The item's version history notes a changed toner contract or a replaced device, if that actually changed.

The ticket is not the inventory, and the inventory is not the ticket. They point at each other.

## Frequently asked questions

### How do I connect a ticket to a configuration item in OTOBO?

Open the configuration item zoom. The agent menu can link the item to another object, including a ticket. The package configuration reference documents that menu entry. Linking is the durable record: the incident or change names the asset, and the asset lists the work done on it.

Use a reference field when the relationship is part of the asset model, such as the customer user who owns a laptop. Use the zoom link action when the relationship is a piece of work, such as this ticket about this printer. One asset then has many tickets over the years without a new field for each ticket.

From the ticket, agents should still see the item's name, owner, and parent. That context is why the CMDB sits inside the same system as the queue.

- [OTOBO CMDB overview](https://doc.otobo.org/manual/packages/itsmconfigurationmanagement/11.0/en/content/overview.html)
- [CMDB configuration reference](https://doc.otobo.org/manual/packages/itsmconfigurationmanagement/11.0/en/content/configuration/system_configuration_settings.html)

### How does a configuration item show up for a customer or a customer user?

A reference field with target Customer puts the configuration item on that customer. The item then appears in the Customer Information Center widget. A reference field with target Customer User does the same for one person and shows the item in the Customer User Information Center widget.

Customers only see items if you enable the customer frontend modules CustomerITSMConfigItem, CustomerITSMConfigItemSearch, and CustomerITSMConfigItemZoom, and if Customer::ConfigItem::PermissionConditions allows that customer. Those switches are off until you turn them on. The permission condition can be tightened further, as the manual describes under permissions and access restrictions.

Do not give every customer the whole CMDB. A customer user should see the laptop, the phone, and the service they use. They should not see the core switch.

- [Dynamic field specifics](https://doc.otobo.org/manual/packages/itsmconfigurationmanagement/11.0/en/content/configuration/custom_configuration_and_advanced_features/dynamic_fields_specifics.html)
- [OTOBO CMDB basic configuration](https://doc.otobo.org/manual/packages/itsmconfigurationmanagement/11.0/en/content/configuration/basic_configuration.html)
