ServiceNow Ticket Statistics connector
The ServiceNow Ticket Statistics connector imports daily ticket counts from ServiceNow, broken down by channel and record type.
This data is used in the Spark Overview dashboard to help you monitor whether Spark is reducing the volume of tickets that require human service desk support.
The connector stores daily ticket counts only. It does not store ticket content, and the data contains no personal information. Counts are stored in the ticket.statistics table. Refer to NQL data model for more information.
Accurate filtering is important; the dashboard compares Spark activity with the ticket volume that would otherwise require human support work.

Configuring the connector credentials
To allow Nexthink to retrieve ticket statistics from your ServiceNow instance, set up a dedicated integration account with the required access. The connector calls the ServiceNow Aggregate API (also known as Stats API) on the api/now/stats/incident and api/now/stats/sc_req_item tables. It receives daily counts only, never ticket records.
Follow the steps below to configure the ServiceNow credentials used to fetch ticket statistics:
Create a dedicated active ServiceNow user account for the Nexthink integration in the ServiceNow Admin Console. Enable the account for API authentication.
Assign a read-only role to the Nexthink integration user in ServiceNow Roles administration. Use an existing role or create a dedicated one, such as
x_nexthink_ticket_reader.Configure table-level read ACLs for the
incidentandsc_req_itemtables.Configure field-level read ACLs for the fields the connector uses:
sys_created_on,sys_class_name, the channel field (for examplecontact_type), and any field used in a filter. You don't need to configure ticket content fields, such as number, description, and caller.Do not assign administrative or write-access roles to the Nexthink integration user.
Configuring the ServiceNow Ticket Statistics connector
From the Nexthink web interface:
Go to Administration > Inbound connectors.
Click New connector in the top-right corner of the page.
Select ServiceNow Ticket Statistics.
Configure the connector by filling in the General and Parameters tabs.
General tab
Configure the basic connector settings:
Name: A meaningful name for the connector. This name appears on the administration page.
NQL ID: A unique identifier for the connector, used when referencing it in NQL queries. You can initially modify the suggested NQL ID, but once you save the connector, you can no longer change it.
Description: A short description of the purpose and behavior of the connector.
Schedule: Set the time zone and start time. The connector runs daily and collects ticket statistics for each 24-hour period beginning at that time.
Connection:
Credentials: Select preconfigured credentials from the connector credentials page. The connector supports OAuth 2.0 and Basic Auth authentication methods. The credentials must belong to a dedicated integration user whose assignments and ServiceNow permissions define what Nexthink can retrieve. Refer to the connector credentials documentation for more information.

Parameters tab
Configure how the connector identifies and counts tickets.
Ticket channel: Defines how the connector identifies a ticket’s channel, for example Spark, email, phone, or ITSM portal. Refer to Choose how to identify ticket channels to determine when you need one connector or separate connectors.
Select From a ticket field to read the channel from a ServiceNow field. The connector produces one row per field value per day.
Select Fixed value to assign one channel name to every ticket matched by the connector filters.
Field name: Required when Ticket channel is set to From a ticket field. Enter the ServiceNow field name that stores the channel value, for example
contact_type.Channel name: Required when Ticket channel is set to Fixed value. The connector records this name as the channel for every matched ticket.
Record types: Select the record types to include: Incidents, Requests, or both. Include only user-reported incidents and requests that represent Service Desk work Spark is intended to handle or reduce. Exclude tickets that do not represent demand Spark could take over, such as monitoring alerts, automatically generated tickets, or tickets outside the Service Desk scope.
Incidents-only filter (optional): An encoded query applied only to incident records. Use this filter to include only incidents relevant to the Service Desk ticket volume you want to monitor. Qualify reference fields with
.name, for exampleassignment_group.name=Service Desk. The^NQ(new query) operator is not supported.Requests-only filter (optional): An encoded query applied only to request records. Use this filter to include only requests relevant to the Service Desk ticket volume you want to monitor. The
^NQ(new query) operator is not supported.
Start date: The UTC date from which ticket counts begin. The first import counts tickets created on each day from this date onwards. Later imports add counts only for full days completed since the previous run.
Choose how to identify ticket channels
The Ticket channel setting determines whether you need one connector or separate connectors for each channel you want to report in the Spark Overview dashboard.
Use one connector when a single ServiceNow field reliably identifies the ticket channel, such as
contact_typewith values such as Email, Portal, and Phone. Select From a ticket field and enter that field name. The connector creates a separate daily count for each value in the field.Use separate connectors when identifying a channel requires more complex logic, such as a combination of multiple fields or conditions. Configure each connector with the appropriate filters and select Fixed value for Ticket channel. Enter the channel name that should appear in the dashboard, for example Phone.
For example, you might create a connector that filters tickets using both the contact type and the user who created the ticket, then assign the fixed channel name Phone. Create one connector for each channel you want to report, including an Other channel if needed.

Test results panel
Use the Test results panel on the right side to run the connector with real data on demand, and inspect responses and errors. The test panel helps with faster debugging and validation during setup, and also with more reliable mappings with less trial and error.
Select the Run test button to call the API, validate the credentials, and check connectivity to the targeted endpoint.

Besides basic information, such as the response status code and time, the panel also shows a sample record of the response at the bottom.

In the event of an error, the system displays the API response to aid in diagnosing the issue.

Last updated
Was this helpful?

