> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/action-center/thales-erp/create-tales-erp-task.md).

# Create Tales Erp Task

**Create Tales Erp Task** sends device information to a Thales ERP server's `PiData.Api.Public/Integration/IsOlustur` endpoint to open tickets. By default it creates one ticket that carries all selected devices. With **Create Individual Tickets** on, it creates a separate ticket for each device.

To open tickets for vulnerabilities instead, use [Create Tales Erp Vulnerability Task](broken://pages/7a0202009bb6e772c2d304c54895550549f8875a). The two jobs share the same ticket fields.

### Before you begin

* A reachable Thales ERP server and an API username and password.
* Asset type: device only. Devices without a `Hostname` are skipped (`Hostname` is the required column).
* Each device sent includes `IpAddresses` and `MacAddresses`, plus every device column configured in the workflow's **Edit Columns**.
* The connection and ticket fields can be pre-filled in [Action Center Settings](broken://pages/6a0273ef77537239e1f4884b763a08e88f31c8b3).

### Settings

| Setting                   | Type        | Required           | Default | Description                                                                                                                                                                                          |
| ------------------------- | ----------- | ------------------ | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| URL                       | Text        | Yes (may be blank) | None    | Server address, for example `https://ip_or_domain.com:port`. Do not add the API path.                                                                                                                |
| Username                  | Text        | Yes                | None    | API username.                                                                                                                                                                                        |
| Password                  | Text        | Yes                | None    | API password. Not marked as sensitive in the form, so it is not masked.                                                                                                                              |
| Dashboard                 | Text        | Yes                | None    | The panel the ticket goes to, for example the product's panel.                                                                                                                                       |
| Type                      | Text        | Yes                | None    | For example Job or Task.                                                                                                                                                                             |
| Impact                    | Text        | Yes                | None    | For example Medium, Critical or Minor.                                                                                                                                                               |
| Category                  | Text        | Yes                | None    | For example ITSM.                                                                                                                                                                                    |
| Importance (Urgency)      | Text        | Yes                | None    | For example High, Medium or Low.                                                                                                                                                                     |
| Priority                  | Text        | Yes                | None    | For example High Priority, Urgent (High) or Low.                                                                                                                                                     |
| Cari                      | Text        | Yes                | None    | The customer (account) record, for example `Demo Cari-182`.                                                                                                                                          |
| Issue                     | Text        | Yes                | None    | Ticket subject.                                                                                                                                                                                      |
| Explanation               | Text        | Yes                | None    | Ticket description. The form hint shows that HTML is accepted.                                                                                                                                       |
| Stage                     | Text        | Yes                | None    | The initial stage, for example To Do.                                                                                                                                                                |
| Assignee                  | Text        | No                 | Empty   | Ticket assignee.                                                                                                                                                                                     |
| Tags                      | List        | Yes                | None    | Comma separated tags, for example `List, Table`.                                                                                                                                                     |
| Custom fields             | Text (JSON) | No                 | `{}`    | JSON merged into the ticket's custom fields. Invalid JSON is ignored at run time.                                                                                                                    |
| Create Individual Tickets | Boolean     | No                 | Off     | Create a separate ticket for each device.                                                                                                                                                            |
| Assignee Custom Field     | Text        | No                 | Empty   | A Custom Data field that holds the assignee. Select the same field in **Edit Columns**. Used only when **Create Individual Tickets** is on. Falls back to **Assignee** when the device has no value. |

### How it works

* The ticket starts now and ends 7 days later.
* **Bulk mode (default):** one request carries all devices, keyed by hostname, in the ticket's custom fields. The job only logs the HTTP status it gets back; it does not fail on an error response.
* **Individual mode:** one request per device. The subject is **Issue** followed by `-` and the hostname. A repeated hostname is skipped. A failed request (HTTP 400 or higher, or a connection error) is logged and the job continues. The log ends with a count of created, skipped and failed tickets.
* The assets are passed on unchanged.

### Example

| Setting                   | Value                                 |
| ------------------------- | ------------------------------------- |
| URL                       | `https://erp.example.com:8443`        |
| Username / Password       | `YOUR_API_USER` / `YOUR_API_PASSWORD` |
| Issue                     | Unmanaged devices                     |
| Tags                      | `octoxlabs, devices`                  |
| Create Individual Tickets | On                                    |

### What's next?

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Create Tales Erp Vulnerability Task</strong></td><td>The same ticket job for vulnerabilities.</td><td><a href="broken://pages/7a0202009bb6e772c2d304c54895550549f8875a">Broken link</a></td></tr><tr><td><strong>Action Center Settings</strong></td><td>Save connection defaults for jobs.</td><td><a href="broken://pages/6a0273ef77537239e1f4884b763a08e88f31c8b3">Broken link</a></td></tr><tr><td><strong>About Action Center</strong></td><td>Workflows, triggers, conditions and job nodes.</td><td><a href="broken://pages/e4b36c32cc6fc55cb0a8683dd14664d72229fbbb">Broken link</a></td></tr></tbody></table>
