Fix code in real-time with Now Assist
Summarize
Summary of Fix code in real-time with Now Assist
Fix code in real-time with Now Assist provides ServiceNow developers with AI-driven, immediate feedback within their development workspace to identify and resolve code quality issues. This feature helps ensure adherence to ServiceNow best practices and proactively reduces technical debt by detecting violations as code is edited.
Show less
Key Features
- Immediate detection: Identifies potential code violations in scripts, includes, and other fields instantly while editing.
- On-screen alerts: Displays real-time findings with severity levels to highlight issues.
- Guided resolution: Offers detailed information including line numbers, impact levels, and step-by-step instructions to fix problems.
- Governance: Supports exception workflows and provides links to supporting documentation to maintain compliance.
- Supported development areas: Includes scheduled scripts, script actions, business rules, client scripts, catalog client scripts, email scripts, script includes, transform scripts, list client scripts, and UI scripts.
Finding Levels and Enforcement
Findings are categorized by levels affecting developer actions:
- Act: Blocks saving the record until the issue is fixed; no exceptions allowed without admin override.
- Recommend: Requires resolution or submission of an exception reason before saving.
- Suggest: Prompts developers to consider better solutions without blocking saves.
- Review: Provides informational messages without blocking saves or generating finding records.
Fix code in real-time activates only for Act or Recommend level findings without approved exceptions. It will not display if findings are filtered out, excluded via properties, or only involve approved Recommend exceptions.
Findings Panel
The Findings panel appears as a slide-in side panel alongside the development workspace, showing a summary banner with counts and types of findings. Findings are organized by level tabs and ordered by impact within each tab. Each finding card includes:
- Finding level and impact level
- Link to the Scan Engine definition
- Line number of the issue
- Resolution steps
- Supporting documentation links
- For Recommend findings, a “Create exception” button is available
When issues are resolved, the panel and summary update dynamically to reflect remaining findings.
Important Configuration Note
To enable this feature, real-time prevention monitoring must be activated in the Scan Engine properties. Proper configuration ensures the feature functions correctly within your instance.
Fix code in real-time with Now Assist allows developers to receive real-time, AI-driven recommendations within their workspace to identify and resolve code quality issues, enabling adherence to ServiceNow, Inc. leading practices and reducing technical debt proactively.
Fix code in real-time with Now Assist provides the following capabilities:
- Immediate detection: Identifies potential violations in scripts, includes, and other fields at the moment of edit.
- On-screen alerts: Displays findings in real-time with severity levels.
- Guided resolution: Provides details such as line numbers, impact levels, and steps to resolve found issues.
- Governance: Supports exception workflows and links to supporting documentation for compliance.
When working with ServiceNow code, the following development areas are supported with the Fix code in real-time with Now Assist feature:
- Scheduled script execution (
sysauto_script) - Script action (
sysevent_script_action) - Business rule (
sys_script) - Client script (
sys_script_client) - Catalog client scripts (
catalog_script_client) - Email script (
sys_script_email) - Script include (
sys_script_include) - Transform script (
sys_transform_script) - List client script (
sys_ui_list_script_client) - UI script (
sys_ui_script)
Finding levels
Findings identified by real-time monitoring are assigned a specific level. Depending on the level of the definition, users may be required to fix a finding before saving a record.
| Level | Description |
|---|---|
| Act |
|
| Recommend |
|
| Suggest | Prompts users to check for a better solution if one is available. |
| Review | Displays an informational message without blocking saves or creating finding records. |
- The only finding is at the Recommend level with an approved exception.
- All findings are filtered out based on the applicable tables.
- The definition is listed in the exclusion property.
Findings panel
When findings are detected, a summary banner displays at the top of the form listing the number and types of findings. The Findings panel is a slide-in side panel that displays alongside the development workspace and remains visible until dismissed. Findings are organized into tabs by level with a total count shown on each tab. Within each tab, findings are ordered by impact level.
Each finding card displays the finding level, impact level, a link to the Scan Engine definition, the line number where the issue occurred, steps to resolve the issue, and a link to supporting documentation. For Recommend level findings, a Create exception button is embedded directly on the card. See Submit exceptions for Scan Engine findings for details.
When findings are resolved, a blue banner displays a summary of the resolved issues, and the summary banner and Findings panel update to reflect the remaining finding counts.