Skip to main content

CSV Import Specifications for Historical Tickets (Current App Schema)

This document outlines the required and optional fields for importing historical tickets into the current application via CSV files.


1. Breakdown Tickets History CSV

These represent historical unscheduled or emergency maintenance events mapped to the current active database schema.

CSV Column / FieldTypeRequired?Description / Requirements
typeStringYesMust be exactly BREAKDOWN.
statusStringYesMust be one of: OPEN, IN_PROGRESS, COMPLETED, CLOSED, SKIPPED.
breakdown.root_causeStringConditionalRequired if status is COMPLETED.
site_idStringNoHighly Recommended. The target Site ID where the breakdown occurred.
asset_idStringNoHighly Recommended. The target Asset ID associated with the breakdown.
titleStringNoOptional description title (e.g. "Machine X Breakdown").
breakdown.start_timeStringNoOptional. When the breakdown occurred (ISO 8601: YYYY-MM-DDTHH:mm:ssZ). Defaults to ticket creation time if missing.
timeline.startedStringNoOptional. When work on the ticket started (ISO 8601).
timeline.endedStringNoOptional. When work on the ticket ended (ISO 8601).
breakdown.solution_descriptionStringNoOptional. Description of how the issue was resolved.

[!IMPORTANT] Breakdown tickets must not contain a scheduled_date field.


2. Planned Ticket Instances History CSV

These represent historical completed or scheduled occurrences of planned maintenance tasks (the actual ticket instances, not the recurring schedule templates).

CSV Column / FieldTypeRequired?Description / Requirements
typeStringYesMust be exactly PLANNED.
statusStringYesMust be one of: PLANNED, OPEN, IN_PROGRESS, COMPLETED, CLOSED, SKIPPED.
titleStringYesThe name/title of the planned maintenance routine instance (e.g., "Monthly Filter Replacement").
scheduled_dateStringYesWhen the planned maintenance was scheduled to happen (ISO 8601: YYYY-MM-DDTHH:mm:ssZ).
site_idStringNoHighly Recommended. The target Site ID.
asset_idStringNoHighly Recommended. The target Asset ID.
timeline.startedStringNoOptional. When work started (ISO 8601).
timeline.endedStringNoOptional. When work ended (ISO 8601).
timeline.is_downtimeBooleanNoOptional. true or false indicating if the planned maintenance caused machine downtime.

3. General Validation & Formatting Rules

Date-Time Fields

All timestamps (such as scheduled_date, breakdown.start_time, timeline.started, timeline.ended) must follow the ISO 8601 format: YYYY-MM-DDTHH:mm:ssZ (e.g. 2026-06-29T18:00:00Z).

Priority

Optional integer value from 1 (lowest priority) to 5 (highest priority).

Assignees

Optional. If you wish to import assignees, they should map to valid User IDs within the active workspace.