sonar-ticket

Retrieves detailed information about the ticket with the specified GUID. Outputs details including the ticket title, status, scenario information, assignees, approvers, and event timestamps.

Command properties

ItemDescription
Command typeDriver query
Required permissionLogin required
License usageN/A
Parallel executionNot supported
Distributed executionNot supported

Syntax

sonar-ticket guid=STR

Options

guid=STR
GUID of the ticket to retrieve

Output fields

FieldTypeDescription
idlongTicket ID
prioritystringPriority. LOW, MEDIUM, HIGH
guidstringTicket GUID
titlestringTitle
first_seentimestampFirst detected time. Minimum _time value of the logs.
last_seentimestampLast detected time. Maximum _time value of the logs.
rule_typestringScenario type. STREAM or BATCH
rule_namestringScenario name
statusstringStatus. NEW, ASSIGNED, IN_PROGRESS, SUBMITTED, APPROVED, REJECTED, CLOSED
attackbooleanWhether the detection is a true positive
incidentbooleanWhether an incident occurred
countintegerDuplicate suppression count
first_eventtimestampTime of the first event
last_eventtimestampTime of the most recent event
repo_namestringTicket repository name
site_namestringSite name
owner_namestringCreator name. null if system-generated.
formatstringTicket format. JSON, MARKDOWN, PLAIN
contentstringTicket content. JSON or text.
assigneesarrayList of assignees
approversarrayList of approvers
tagsstringTag list, separated by newlines (\n)
createdtimestampCreation time
updatedtimestampLast update time
closedtimestampCompletion time
x_loginstringLogin name of a deleted account
x_userstringName of a deleted user
x_deptstringName of a deleted department
x_sitestringName of a deleted site
repo_guidstringTicket repository GUID
site_guidstringSite GUID
owner_guidstringCreator GUID

Error codes

Parse errors
Error codeMessageDescription
300101유효하지 않은 세션입니다.The session is invalid or the user cannot be found.
300139sonar-ticket 명령어에 guid 옵션을 지정하세요.The guid option is not specified.
300140sonar-ticket 명령어의 guid 옵션 값은 GUID 형식이어야 합니다.The guid option value is not in GUID format.
300141지정된 티켓이 존재하지 않습니다.No ticket exists for the specified GUID.
Runtime errors

N/A

Description

The sonar-ticket command looks up the ticket with the specified GUID at parse time and outputs its details as a single record. If the ticket does not exist, a parse error occurs.

The tag list is serialized as a string separated by newline characters (\n).

Examples

  1. Retrieve detailed information about a specific ticket

    sonar-ticket guid="550e8400-e29b-41d4-a716-446655440000"
    

    Retrieves detailed information about the ticket with the specified GUID.

  2. Extract assignees from ticket details

    sonar-ticket guid="550e8400-e29b-41d4-a716-446655440000"
    | explode assignees
    

    Splits the ticket's assignee list into individual records.