Create ServiceNow Ticket

Create ServiceNow Ticket allows you to open new tickets as a task from a parent playbook. When creating the ticket, you can decide to update based on on the ticket's state, which will wait for the ticket to resolve or close with StatePolling. Alternatively, you can select to mirror the ServiceNow ticket and incident fields. To apply either of these options, set the SyncTicket value in the playbook inputs to one of the following options: 1. StatePolling 2. Mirror 3. Leave Blank to use none.

ServiceNow · 8 tasks · 16 inputs · 13 outputs

Inputs

  • Category — The category of the ServiceNow Ticket.
  • AssignmentGroup — The group to which to assign the new ticket.
  • ShortDescription — A short description of the ticket.
  • Impact — The impact for the new ticket. Leave empty for ServiceNow default impact.
  • Urgency — The urgency of the new ticket. Leave empty for ServiceNow default urgency.
  • Severity — The severity of the new ticket. Leave empty for ServiceNow default severity.
  • Comment — A comment for the created ticket.
  • SyncTicket — The value of the desired sync method with ServiceNow Ticket. You can choose one of the following options: 1. StatePolling 2. Mirror 3. Blank for none GenericPolling polls for the state of the ticket and runs until the ticket state is either resolved or closed. Mirror - You can use the Mirror option to perform a full sync with the ServiceNow Ticket. The ticket data is synced automatically between ServiceNow and Cortex XSOAR with the ServiceNow mirror feature. If this option is selected, FieldPolling is true by default.
  • PollingInterval — The interval time (in minutes) for the polling to run.
  • PollingTimeout — The amount of time (in minutes) to poll the status of the ticket before declaring a timeout and resuming the playbook.
  • AdditionalPollingCommandName — In this use case, additional polling commands are relevant when using StatePolling, and there is more than one ServiceNow instance. It will specify the polling command to use a specific instance to run on. If so, add "Using" to the value. The playbook will then take the instance name as the instance to use." the polling command to use a specific instance to run on. If so, please add "using" to the value. The playbook will then take the instance name as the instance to use.
  • InstanceName — The ServiceNow instance that will be used for mirroring/running polling commands.
  • MirrorDirection — The mirror direction. It should be one of the following: 1. In 2. Out 3. Both
  • MirrorCommentTags — The tags for mirror comments and files to ServiceNow.
  • FieldPolling — Set the value to true or false to determine if the playbook will execute the FieldPolling sub-playbook. It is useful when it is needed to wait for the ServiceNow ticket to be resolved and continue the parent playbook. FieldPolling will run until the ticket state is either resolved or closed.
  • TicketType — The ServiceNow ticket type. Options are "incident", "problem", "change_request", "sc_request", "sc_task", or "sc_req_item". Default is "incident".

Outputs

  • ServiceNow.Ticket.ID — Ticket ID.
  • ServiceNow.Ticket.OpenedBy — Ticket opener ID.
  • ServiceNow.Ticket.CreatedOn — Ticket creation date.
  • ServiceNow.Ticket.Assignee — Ticket assignee ID.
  • ServiceNow.Ticket.State — Ticket state.
  • ServiceNow.Ticket.Summary — Ticket short summary.
  • ServiceNow.Ticket.Number — Ticket number.
  • ServiceNow.Ticket.Active — Ticket active.
  • ServiceNow.Ticket.AdditionalComments — Ticket comments.
  • ServiceNow.Ticket.Priority — Ticket priority.
  • ServiceNow.Ticket.OpenedAt — Ticket opening time.
  • ServiceNow.Ticket.ResolvedBy — Ticket resolver ID.
  • ServiceNow.Ticket.CloseCode — Ticket close code.

Commands used

servicenow-create-ticket

Flowchart

Mirror State Polling yes Start Start Done Done Mirror or State Polling? Mirror or State Polling? Mirror ServiceNow Ticket - Mirror ServiceNow Ticket Mirror ServiceNow Ticket Mirror ServiceNow Ticket ServiceNow Ticket State Polling - ServiceNow Ticket State Polling ServiceNow Ticket State P... ServiceNow Ticket State Polling Create ServiceNow ticket - servicenow-create-ticket Create ServiceNow ticket servicenow-create-ticket Is InstanceName empty? Is InstanceName empty? Create ServiceNow ticket (without using InstanceName) - servicenow-create-ticket Create ServiceNow ticket ... servicenow-create-ticket