AgentSkillsCN

Tickets

当您需要管理NinjaOne工单时,可使用此技能:创建、更新、搜索并管理工单相关业务。NinjaOne内置的工单系统与设备监控功能深度融合,为MSP的高效工作流程提供了有力支持。

SKILL.md
--- frontmatter
description: >
  Use this skill when working with NinjaOne tickets - creating, updating,
  searching, and managing ticketing operations. NinjaOne's built-in ticketing
  integrates with device monitoring for streamlined MSP workflows.
triggers:
  - ninjaone ticket
  - ninjarmm ticket
  - ninja ticket create
  - ninja ticket search
  - ticket status ninja
  - ninja service ticket

NinjaOne Ticket Management

Overview

NinjaOne includes a built-in ticketing system that integrates with device monitoring. Tickets can be manually created or auto-generated from alerts, providing a complete service desk solution.

API Endpoints

Create Ticket

http
POST /api/v2/ticketing/ticket
Content-Type: application/json
Authorization: Bearer {token}
json
{
  "clientId": 123,
  "subject": "Server disk space critical",
  "description": "C: drive on SERVER-01 is at 95% capacity",
  "priority": "HIGH",
  "status": "OPEN",
  "assignedTechnicianId": 456,
  "deviceId": 789,
  "tags": ["disk", "server", "critical"]
}

Update Ticket

http
PUT /api/v2/ticketing/ticket/{ticketId}
Content-Type: application/json
json
{
  "status": "IN_PROGRESS",
  "priority": "MEDIUM",
  "assignedTechnicianId": 456
}

Get Ticket Log Entries

http
GET /api/v2/ticketing/ticket/{ticketId}/log-entry

Returns all log entries (comments, status changes, time entries) for a ticket.

Ticket Fields

Core Fields

FieldTypeRequiredDescription
idintegerSystemAuto-generated ID
subjectstringYesBrief issue summary
descriptiontextNoDetailed description
clientIdintegerYesOrganization ID
deviceIdintegerNoRelated device

Status Fields

FieldTypeDescription
statusstringCurrent ticket status
prioritystringUrgency level
assignedTechnicianIdintegerAssigned tech

Metadata

FieldTypeDescription
tagsarrayCategorization tags
createTimedatetimeCreation timestamp
updateTimedatetimeLast modified

Status Values

StatusDescription
OPENNew ticket, awaiting triage
IN_PROGRESSActively being worked
WAITINGWaiting for customer/vendor
ON_HOLDPaused pending action
RESOLVEDIssue resolved
CLOSEDTicket complete

Priority Levels

PriorityDescriptionSLA Target
CRITICALBusiness downImmediate
HIGHMajor impact1 hour
MEDIUMModerate impact4 hours
LOWMinor issue24 hours
NONENo urgencyBest effort

Log Entries

Log entries track all ticket activity:

Entry Types

TypeDescription
COMMENTPublic or private comment
STATUS_CHANGEStatus transition
ASSIGNMENTTechnician assignment change
TIME_ENTRYLogged work time

Log Entry Structure

json
{
  "id": 123,
  "type": "COMMENT",
  "content": "Investigated and found corrupted index",
  "public": false,
  "createdBy": {
    "id": 456,
    "name": "John Tech"
  },
  "createTime": "2024-02-15T14:30:00Z"
}

Common Workflows

Create Ticket from Alert

  1. Receive alert notification
  2. Get device and organization context
  3. Create ticket with device linked
  4. Add alert details to description
  5. Set priority based on alert severity
  6. Assign to appropriate technician

Ticket Resolution Flow

  1. Update status to IN_PROGRESS
  2. Add log entries documenting work
  3. Log time entries for billing
  4. Update status to RESOLVED
  5. Add resolution notes
  6. Close ticket

Escalation Workflow

  1. Review ticket age and SLA
  2. Update priority if needed
  3. Reassign to senior tech
  4. Add escalation note
  5. Notify stakeholders

Integration with Devices

Link tickets to devices for context:

json
{
  "subject": "Outlook crashes repeatedly",
  "deviceId": 12345,
  "description": "User reports Outlook crashes when opening attachments"
}

Benefits:

  • Quick access to device details
  • View device alerts in ticket context
  • Run remote actions from ticket

Tags for Categorization

json
{
  "tags": [
    "email",
    "outlook",
    "crash",
    "user-reported"
  ]
}

Common tag patterns:

  • Issue type: hardware, software, network
  • Application: outlook, office, vpn
  • Source: user-reported, alert, scheduled
  • Priority override: vip, urgent

Best Practices

  1. Link to devices - Provides context and quick actions
  2. Use descriptive subjects - Include who, what, where
  3. Log all work - Essential for billing and knowledge
  4. Update status promptly - Keeps queues accurate
  5. Use tags consistently - Enables better reporting
  6. Document resolution - Helps with future issues

Error Handling

CodeDescriptionResolution
400Invalid requestCheck required fields
404Ticket not foundVerify ticket ID
403Access deniedCheck organization permissions
422Validation errorReview field values

Related Skills