# Relations and impact in the OTOBO CMDB

> Link OTOBO configuration items into a dependency chain and read that chain during an incident or a change.

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

A configuration item on its own is an inventory row. The configuration item link is what makes the CMDB useful: each item states what it depends on. In OTOBO that statement is a **reference field** of target **ConfigItem**, plus the links the zoom page can list.

![Dependency chain from a site, through a building and a room, to a server, a database, and an application.](../../../../../assets/cmdb/cmdb-dependency-tree.jpg)

_One chain you can actually maintain: site, building, room, server, then the database and the application that use the server._

## Model the chain as references

Point the child at the parent. The room references the building. The server references the room. The application references the server. You do not draw the arrows in a separate tool. The field is the arrow.

```mermaid
flowchart LR
  Site["Berlin HQ"] --> Building["House A"]
  Building --> Room["Server room"]
  Room --> Server["srv-db-01"]
  Server --> DB["PostgreSQL"]
  Server --> App["Billing app"]
```

The official field guide uses the same pattern for Country → Subsidiary → Building → Room. Stop the chain where an agent still understands it. Five levels that nobody fills in are worse than three levels that stay current.

A **ConfigItemVersion** reference is stricter. It points at one saved version, not at "whatever the item says today". Use it when a contract or a release must name an exact state. For day-to-day impact, a normal ConfigItem reference is the right target, because you want the current item.

## Show the links on the zoom page

A section of type `ConfigItemLinks` lists items already linked to this one. It does not appear on the edit mask.

```yaml
Sections:
  Server::Links:
    Type: ConfigItemLinks
    Header: Depends on
    LinkedAs: Both
    LinkTypes:
      - Normal
```

`LinkedAs` is `Source`, `Target`, or `Both`. `LinkTypes` is optional. If you omit it, the section is not filtered by type.

A section of type `ReferencedSection` goes further: it embeds a whole section of the referenced item. Set `ReferenceField` to the reference on this item and `SectionName` to the section you want to show. `FieldListPre` and `FieldListPost` add fields of the current item around that embedded block. Agents then read the server's summary while they look at the application.

## Tree view

OTOBO 11 draws the dependency links as a **tree view**. Package 11.0.3 tightened how linking works in that tree and aligned internal link directions. Use the tree in a conversation, not as a poster:

- Start at the item named in the ticket.
- Walk up to the shared parent (room, switch, database server).
- Walk down to the children that will notice the outage.

If the tree is a single node, the references were never set. Fix the class, then fix the items. A picture of an empty tree does not create an architecture.

## Incident and change

| Moment   | What you open             | What you write down                               |
| -------- | ------------------------- | ------------------------------------------------- |
| Incident | The item the caller names | Parent and children that explain the blast radius |
| Change   | The item you will touch   | Every child that must be tested or warned         |
| Audit    | The item and its versions | Who changed the link, and when                    |

Link the ticket to the item as well. The relation explains the technical blast radius. The ticket link explains the work. Both are described from the ticket side on [tickets and customers](https://otobo-docs.softoft.de/en/other/cmdb/tickets-and-customers/).

## Keep the chain short and true

- One parent field per relationship you will actually filter on. "Runs on" and "located in" are enough for most helpdesks.
- Prefer a reference over a typed hostname. A typed hostname does not move when the server is renamed.
- When you decommission an item, repoint or clear the children in the same change. Orphan references look like live dependencies.
- Review the busiest parents (core switches, identity servers, the main database) on a schedule. Those few items dominate the impact of every incident. [Governance](https://otobo-docs.softoft.de/en/other/cmdb/best-practises-governance/) is the place for that review role.

## Frequently asked questions

### How do configuration items point at each other in OTOBO?

A ConfigItem reference field stores the link. The usual chain is a place hierarchy: country, subsidiary, building, room, then the asset in that room, then the application on that asset. Each step is a reference on the child, pointing at the parent.

The zoom page can also list links with a section of type ConfigItemLinks. LinkedAs chooses Source, Target, or Both, and LinkTypes limits which link types are shown. That section is a view, not an edit form.

OTOBO 11 shows these dependencies in a tree view. The 11.0.3 package notes describe fixes to linking in that tree, including the direction of internal links. Read the tree before you change a shared server or a 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)
- [ITSM Configuration Management 11.0.3](https://otobo.io/en/itsm-configuration-management-cmdb-11-0-3/)

### How does a dependency chain help with incidents and changes?

During an incident, open the affected configuration item and walk the references. A failed database item points at its server, the server points at a room and a switch, and applications point back at the database. The agents see who else is down without a separate inventory spreadsheet.

During a change, the same chain is the impact list. Patching srv-db-01 is not only a server task when the billing application and the reporting job both reference it. Name those items in the change ticket and link the ticket to the item, as described on the tickets and customers page.

The chain is only as good as the references you maintain. A missing parent turns the tree view into a list of isolated names.

- [OTOBO CMDB overview](https://doc.otobo.org/manual/packages/itsmconfigurationmanagement/11.0/en/content/overview.html)
- [Config item definitions](https://doc.otobo.org/manual/packages/itsmconfigurationmanagement/11.0/en/content/configuration/custom_configuration_and_advanced_features/config_item_definitions.html)
