ServiceNow · Schema

TroubleTicketCreate

AutomationCloud ServicesDigital WorkflowsEnterprise PlatformIT Service ManagementITSMProcessesT1Workflow AutomationWorkflows

Properties

Name Type Description
name string Name of the trouble ticket, typically a short description of the issue
description string A description of the issue
severity string The severity of the issue (must provide choice value only): - 1: Critical - 2: High - 3: Moderate - 4: Low - 5: Planning (Incident only)
status string The current status of the trouble ticket (can provide choice label or value)
ticketType string The type of ticket to create
channel object
note array List of work notes and comments to add to the ticket
relatedEntity array List of impacted assets, products, sold products, configuration items, or services
relatedParty array Details about contacts for the ticket
View JSON Schema on GitHub

JSON Schema

trouble-ticket-trouble-ticket-create-schema.json Raw ↑
{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Name of the trouble ticket, typically a short description of the issue",
      "example": "Example Title"
    },
    "description": {
      "type": "string",
      "description": "A description of the issue",
      "example": "A sample description."
    },
    "severity": {
      "type": "string",
      "description": "The severity of the issue (must provide choice value only):\n- 1: Critical\n- 2: High\n- 3: Moderate\n- 4: Low\n- 5: Planning (Incident only)\n",
      "example": "1",
      "enum": [
        "1",
        "2",
        "3",
        "4",
        "5"
      ]
    },
    "status": {
      "type": "string",
      "description": "The current status of the trouble ticket (can provide choice label or value)",
      "example": "example_value"
    },
    "ticketType": {
      "type": "string",
      "description": "The type of ticket to create",
      "example": "Case",
      "enum": [
        "Case",
        "Incident",
        "Service Problem Case"
      ]
    },
    "channel": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Name of the contact method (can provide choice label or value, e.g., 'Virtual Agent' or 'virtual_agent')",
          "example": "Example Title"
        }
      }
    },
    "note": {
      "type": "array",
      "description": "List of work notes and comments to add to the ticket",
      "example": [],
      "items": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string",
            "description": "Note text",
            "example": "example_value"
          },
          "@type": {
            "type": "string",
            "description": "Type of note (determines whether recorded in Work notes or Additional comments field)",
            "example": "comments",
            "enum": [
              "comments",
              "work_notes"
            ]
          }
        },
        "required": [
          "text",
          "@type"
        ]
      }
    },
    "relatedEntity": {
      "type": "array",
      "description": "List of impacted assets, products, sold products, configuration items, or services",
      "example": [],
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Sys_id of the impacted item or service",
            "example": "abc123"
          },
          "@referredType": {
            "type": "string",
            "description": "Type of item or service",
            "example": "asset",
            "enum": [
              "asset",
              "product",
              "product_inventory",
              "cmdb_ci",
              "cmdb_ci_service"
            ]
          }
        },
        "required": [
          "id",
          "@referredType"
        ]
      }
    },
    "relatedParty": {
      "type": "array",
      "description": "Details about contacts for the ticket",
      "example": [],
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Sys_id of the related party",
            "example": "abc123"
          },
          "@referredType": {
            "type": "string",
            "description": "Type of related party:\n- customer: Company or account for the ticket\n- customer_contact: Caller or contact for the ticket\n",
            "example": "customer",
            "enum": [
              "customer",
              "customer_contact"
            ]
          }
        },
        "required": [
          "id",
          "@referredType"
        ]
      }
    }
  },
  "required": [
    "description",
    "severity",
    "status"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "TroubleTicketCreate"
}