# Ticket systems (HaloPSA, Autotask, ConnectWise, TOPdesk)

> Connect HaloPSA, Autotask, ConnectWise PSA or TOPdesk — tickets for security alerts, offline devices and cabling faults, tickets on the device, rack and site pages, and devices as assets.

URL: https://docs.racktrace.io/integrations/ticket-systems

Connect the ticket system your service desk works in, and RackTrace:

- makes a **ticket** when it sees a problem — a security alert, a device that goes offline, a fault in the cabling check — at the client the tenant is in your ticket system, **one ticket per problem**, with a note on it when the problem is gone;
- shows the **tickets** on the dashboard, site and device pages and in the rack editor, with **Create ticket** (the path, location and the trace of a port go in it);
- keeps the **devices as assets** (configuration items) in the ticket system, with a link back to RackTrace.

Supported: **HaloPSA**, **Autotask** (Datto / Kaseya), **ConnectWise PSA** (ConnectWise Manage) and **TOPdesk**. One ticket system per organization.

## Connecting the ticket system

1. Create an API sign-in in the ticket system — see the steps per system below.
2. In RackTrace, open **Administration → Integrations**, tab **Tickets**. Choose the **System** and fill in the address and the sign-in.
3. Click **Test connection**, then **Save**.
4. Under **Defaults**, choose how new tickets are made (ticket type, board or queue, the priorities for *High*, *Medium* and *Low*), when problems become a ticket, and the asset type for assets. Click **Save**.
5. Under **Tenants**, choose for every tenant the **Client** it is in the ticket system. When a client has the same name, **Link to …** does it in one click.

The secret parts of the sign-in are stored encrypted on the RackTrace server and never shown again or sent to browsers. **Remove sign-in** removes them. Choosing another **System** removes the links of the tenants and of the assets; the tickets made so far stay in the lists.

> **On your own server**
>
> RackTrace on your own server does not know the address your colleagues open it at. Fill in **Address of RackTrace (the link back in a ticket)** under **Defaults** (or set `RACKTRACE_PUBLIC_URL` on the server), so every ticket links back to the device, the security alerts or the cabling check.

### HaloPSA

1. In HaloPSA, create an agent for RackTrace under **Configuration → Teams & Agents → Agents** and tick **Is an API-only Agent**. Give it access to your clients.
2. Go to **Configuration → Integrations → Halo API**, click **View Applications** and add an application: **Authentication Method** *Client ID and Secret (Services)*, **Login Type** *Agent*, **Agent to log in as** the agent of step 1. On **Permissions** tick `read:customers`, `read:tickets`, `edit:tickets`, `read:assets` and `edit:assets` (or `all`).
3. In RackTrace fill in the **HaloPSA address** (`https://yourcompany.halopsa.com`), the **Client ID** and the **Client secret**. **Tenant** can stay empty: RackTrace looks it up (it is under *API Details* in HaloPSA).

Per tenant, **Settings** chooses the **Site** of the client for new tickets and assets (by default the client's main site). Under **Defaults** choose the **Ticket type**, the **Outcome** of the notes RackTrace adds (by default *Private Note*), and for assets the **Asset type**: the device name goes in its key field. The serial number, MAC address and management IP go in the asset fields with those names, or the ones you choose. **Counts as closed** ticks the statuses at which a ticket is done for RackTrace — *Closed* by default; tick *Pending Closure* as well when a ticket waiting for the user to confirm counts as done.

### Autotask

1. In Autotask go to **Admin → Organization Settings & Users → Resources/Users (HR) → Resources/Users**, click **New** and then **New API User**.
2. Choose the security level **API User (system) (API-only)**, click **Generate Key** and **Generate Secret**, and under **API Tracking Identifier** choose **Custom (Internal Integration)** with the name *RackTrace*.
3. In RackTrace fill in the **API user name** (exactly as Autotask shows it), the **Secret** and the **API tracking identifier**. There is no address to fill in: RackTrace looks up the zone of the user.

Under **Defaults** choose the **Queue** where new tickets land (most Autotask databases need one), the status, category, type, issue type and source of new tickets, and the note type and visibility of the notes RackTrace adds. Autotask needs a **Product** for every configuration item: choose one under *Assets* — for example make a product *Network device (RackTrace)*. **Counts as closed** ticks the statuses at which a ticket is done for RackTrace — *Complete* by default (the status that completes a ticket in Autotask); tick others, such as *Cancelled*, when your service desk ends tickets with them. A ticket for a device with a configuration item is linked to it.

### ConnectWise PSA

1. In ConnectWise PSA go to **System → Members → API Members** and add an API member with a security role that may read companies and configurations, add and change configurations, and add service tickets and notes.
2. On the API member, under **API Keys**, click **+** and copy the public and the private key (the private key is shown once).
3. In RackTrace fill in the **ConnectWise address** — the API address, such as `https://api-eu.myconnectwise.net` (`api-na` or `api-au` in other regions), or your own server — the **Company ID** you sign in with, the **Public key**, the **Private key** and the **ClientID**: ConnectWise asks every integration for one — register it (free, with a company e-mail address) at developer.connectwise.com under *ClientID*.

Under **Defaults** choose the **Service board** where new tickets land (required), the source, the priorities and the **Configuration type** of new configurations. A configuration of a device is attached to the tickets made for that device.

### TOPdesk

1. In TOPdesk give the operator RackTrace signs in as (or an API account) a permission group with **API access → REST API** and **Use application tokens**, read and write rights for 1st and 2nd line incidents, and rights on the asset types RackTrace keeps. Make sure no branch filter hides your customers.
2. On the operator card, under **Application tokens**, click **Add** and copy the token — it is shown once.
3. In RackTrace fill in the **TOPdesk address** (`https://yourcompany.topdesk.net`), the **Login name** and the **Application token**.

In TOPdesk your customers are **branches** (*vestigingen*). An incident gets the caller *RackTrace* at the branch of the tenant. Under **Defaults** choose the line, operator group, category, call type, entry type and processing status of new incidents, the **Asset type (template)** of new assets — its fields for serial number, MAC address and IP address are filled when it has them — and the **Reason for archiving** of an asset whose device was deleted. An asset is assigned to the branch and linked to the incidents made for its device.

## When a problem becomes a ticket

RackTrace looks for problems in a tenant after every sync (discovery, Domotz) and when an alert is marked as seen:

| Kind | What | Priority |
|---|---|---|
| Security alert (high) | An open [security alert](https://docs.racktrace.io/network/unifi-review#alerts) with severity high: a new port forward, a blocking firewall rule switched off, an open WiFi network … | High |
| Security alert (medium) | An open security alert with severity medium | Medium |
| Device offline | A linked device (switch, gateway, firewall, access point, server, UPS …) that every source reporting on it calls offline — not PCs, phones and printers | High for switches, gateways, routers and firewalls, otherwise medium |
| Cabling check | What the [cabling check](https://docs.racktrace.io/integrations/discovery#cabling-check) reports as wired differently than documented (wrong port, mismatch), and a documented link between two network devices that is down | High for a link that is down, otherwise medium |

For every kind choose **Automatically**, **With a button** or **Never** — under **Defaults** for the organization (by default only *Security alert (high)* is automatic), and per tenant with **Settings** in the list of tenants.

- **Automatically**: a new problem gets a ticket by itself, within a minute after the sync that found it. A device must be offline for at least **Offline for at least (minutes)** (10 by default) first.
- **With a button**: the problem is listed in the **Tickets** card with **Create ticket**.
- **Never**: the problem is not listed.

One problem makes **one** ticket, also when every sync sees it again. When RackTrace no longer sees it — the device is online again, the alert is marked as seen, the cabling is right — a note goes on the ticket (switch it off with **Add a note to the ticket when RackTrace no longer sees the problem**). RackTrace never closes a ticket. A problem that comes back while its ticket is still open gets a note on that ticket instead of a second one.

> **Note**
>
> Problems that were already there when you linked a tenant (or made a kind automatic) never make a ticket by themselves — no flood of tickets for old news. They are listed with **Create ticket**. At most 20 tickets per tenant are made in one go; the rest follow a minute later.

## Tickets in RackTrace

The **Tickets** card on the dashboard of a tenant, on a site page and on a device page (and **Tickets of this rack** in the rack inspector of the rack editor) shows:

- **Problems RackTrace sees**: with the ticket that was made for it, *A ticket follows automatically*, or **Create ticket**;
- **Made from RackTrace** (**Other tickets made from RackTrace** under problems): the other tickets made for this device, rack, site or tenant, with their state in the ticket system (brought up to date every 10 minutes, see **Update tickets and assets every (minutes)**);
- **Open in …**: the open tickets in the ticket system of the client (dashboard and site) or of the device's asset (device page), also those made there. A rack shows only the tickets made from RackTrace.

The number of a ticket opens it in the ticket system.

**Create ticket** (on the card, or **Ticket** in the dialog of a port) opens a draft: the path and location of the device, the management IP and serial number, for a port the trace through patch panels and outlets, and a link back to RackTrace. Add what is wrong, choose the priority and click **Create ticket**. Creating tickets needs the right **Tickets** (see [Users and groups](https://docs.racktrace.io/administration/users-and-groups#roles)); editors have it, and every user who can see the tenant sees its tickets.

## Devices as assets

Tick **Keep the devices of … as assets** in the **Settings** of a tenant. At the next sync (and then every 10 minutes for what changed) every device of the tenant becomes an asset or configuration item at its client:

- name, serial number, MAC address, management IP, manufacturer and model, the location (site, room, rack and U) and a link back to RackTrace;
- an asset that is already there is found by its **serial number** first (in HaloPSA, ConnectWise and TOPdesk also by **MAC address**) and kept up to date, so nothing is made twice;
- patch panels, PATCHBOXes, outlets, blank panels, shelves and cable managers are left out;
- a device that is deleted in RackTrace: its asset is set **inactive**, never deleted.

A device with an asset shows the open tickets of that asset on its page, and new tickets for the device are linked to it.

> **Caution**
>
> RackTrace is leading for these assets: a change made in the ticket system to a field RackTrace fills is overwritten at the next sync.
