OBLYTECH Logo
OBLYTECH Logo

ServiceNow Performance Analytics Spotlight: Ranking Records

Spotlight is a Performance Analytics feature that scores each record from several weighted conditions and creates a Spotlight for any record whose total passes a threshold you set. It suits triage, where a quiet, low-priority item with several risk signals should reach someone before a loud, high-priority one. Setup has three stages: a group, its criteria, and a schedule.

Why a single priority field misses work

Priority is the field many queues sort by, and it hides a familiar problem. Low-priority items sometimes sit open for an extended period. Spotlight scores several dimensions at once, so an incident that has been open a long time, has changed hands several times and has no description can rise above a higher-priority ticket that carries one of those traits. Spotlight ranks records on several weighted dimensions instead of on a single field such as priority.

How the score is built

A Spotlight group holds criteria, and each criterion carries a weight. A record’s score is the total weight of the criteria it meets. A record’s score must exceed the group’s threshold before a Spotlight is created.

Take three criteria: an open incident not updated for 30 days (weight 1,000), an incident reassigned more than three times (800), and an incident with an empty description (300). An open incident reassigned four times with an empty description scores 1,100, which places it above an incident that meets the first criterion alone at 1,000.

Record example Criteria met Total score
Open, not updated for 30 days 1,000 1,000
Reassigned four times, empty description 800 + 300 1,100
All three conditions 1,000 + 800 + 300 2,100

Tune weights and the threshold together. Run a collection, review the records that passed, and adjust until the list is short enough for a person to work through.

Building the group and its main indicator

An administrator must activate the Spotlight plugin first. Users who create groups and criteria need the pa_spotlight or admin role. Groups are created under All > Spotlight > Spotlight Groups, where you set the threshold, the main indicator and an optional breakdown with one element.

The main indicator has the strictest requirements. It must be an automated indicator with collect_records set to true on the Source tab, and its indicator source must be a real table rather than a database view. A group can reference just one facts table, so the main indicator and each criterion must share it. For the underlying concepts, read the indicator explainer and the breakdown explainer.

Snapshot records or platform data

The Evaluate scores from field decides where the job reads its records. New groups use a Performance Analytics snapshot by default, meaning the list of record sys_ids captured when the data collection job last ran. Snapshot mode works best when timing lines up: the main indicator and each criterion indicator need record collection enabled and the same frequency, and the score job should run shortly after collection finishes.

Platform data mode reads records directly when the job runs. Scores reflect the platform at the latest job, so a change appears at the next run, and the mode uses more system resources. A script-based breakdown blocks platform data for an indicator-based criterion, and a group whose main indicator uses one must stay on snapshots. Query-based criteria are the exception to the snapshot rule, since they always read platform data.

Adding criteria

Open the Spotlight Criteria related list on the group and choose New. Enter the weight, then pick a criteria type.

Criteria type What it needs Data it reads
Indicator-based Automated indicator with collect_records, on the same table as the main indicator, with optional breakdown filters Snapshot or platform
Query-based Filter conditions on the main facts table, selected automatically Platform

Indicator-based criteria cannot point at a database view. Query-based criteria suit a date window or a field value, and they avoid the script-breakdown restriction. For the wider concept behind indicators and breakdowns, see the indicators and breakdowns guide.

Collecting scores on a schedule

Activating the group starts collection on its schedule. Execute Now runs a job straight away, which is useful for testing a new setup. Daily needs a time of day. Monthly needs a day of the month and a time.

Each collection removes the older Spotlight records for that group before writing new scores, so capture an export if you want to compare periods. Under domain separation, set a Run as user; without one, scores cover matching records in all domains. Activation creates a Schedule Item [sys_trigger] record. Administrators reach it through Show Scheduler on the group form to troubleshoot scheduling, since it holds the scheduling information set on the group.

Reading a score

Open the Spotlight list, click the information icon beside a record, and choose Open Record. The Spotlight Audits related list shows each criterion met and its contribution. One example record scored 1,200 against a threshold of 1,000, drawing 1,000 from a not-updated-in-30-days criterion, 100 from a not-updated-in-5-days criterion, and 25 points each from four age criteria. When a score looks high, check the age criteria first, since several of them can apply to the same record.

Interactive analysis and database views

The Launch Interactive Analysis related link on a group shows the results of its latest job. It reports the Spotlight records, which equal the facts records above the threshold, and how many of those have no value in Assigned To. Filters cover Priority and Assignment Group (tasks only), Opened, Age and State. Analysis on any table other than incident requires a fully enabled, subscription version of Performance Analytics. To share it, copy the URL from the Filter Info panel and make sure the recipient has pa_spotlight_viewer.

The analysis reads a database view that Spotlight creates with the group. The view joins the Spotlight table to the facts table. If it is missing or invalid, an error message appears on the group record, and a Generate Database View related link becomes available. Deleting a group removes the view when no other group references it and no other group’s main indicator uses the same facts table.

Dashboards and copying groups

Spotlights can appear on Platform Analytics dashboards. Add a list of the Spotlight table to a dashboard built in the inline editor, then filter it by Spotlight Group. For wider dashboard steps, see the Performance Analytics dashboard guide.

Two copy functions avoid rebuilding a tested group by hand. Copy to Domain creates identical groups in a domain or its subdomains. Copy to Breakdown Element creates one group per selected element of a linked breakdown. The name preference can keep the name, set a new one, or add the domain or element name as a prefix or suffix. After a copy, review each group’s schedule and activate it. After a domain copy, also check that each group’s Run as user has access to the target domain. Copies do not carry over job results. Copy jobs write their own log under Spotlight Group Copy Logs, and each failure names its error.

Troubleshooting a failed job

Spotlight job steps are logged, and users with pa_spotlight or admin can read and delete them. They are listed under Spotlight Logs and, filtered to the group, in its related list.

Consider an incident group that evaluates live data. Its job failed on a criterion named incidents more than 30 days old, which was indicator-based and used an age breakdown built on a script mapping. Platform-data groups cannot use that breakdown. A fix for this error replaces the scripted-breakdown criterion with a query-based criterion on the incident table, using two Opened conditions: on or before 30 days ago, and on or after 90 days ago. Replacing it is what lets the job run without errors. Open the log row first, then the criterion it names, and check its breakdown and evaluation mode before changing anything else.

Frequently asked questions

Can Spotlight rank records using more than one field?

Yes. Each criterion can test a different field or condition, and the score is the total of each criterion a record meets. A record with several moderate signals can therefore outrank one with a single strong signal.

Why do scores lag behind record changes?

Platform data mode reflects the record as it stood at the latest job, so changes appear at the next run. Snapshot mode depends on collection jobs that run just before scoring, so check that timing first.

Can I use Spotlight with a table other than incident?

Yes. The group needs an automated indicator with record collection enabled. Interactive analysis on other tables also requires a fully enabled, subscription version of Performance Analytics.

Why does a job fail with an invalid criterion?

Criteria are checked when the job runs. Common causes are an indicator built on a database view, an indicator on a different table from the main indicator, or a script-based breakdown used with platform data. The job log names the criterion at fault.

Next steps

Start with one group on one indicator, keep the criteria few, and check the first results against what the team already knows. The ITSM Performance Analytics hub places this feature among the wider reporting work, and the domain separation explainer covers the domain rules that copies follow.