---
sourceDocument: Zurich Security Management
sourceDocumentLink: https://www.servicenow.com/docs/r/zurich/security-management

 Release :

    - zurich

ft:locale :

    - en-US

ft:publication_title :

    - Zurich Security Management

ft:clusterId :

    - security

bundleId :

    - security

workflow :

    - Technology


---

# Use Auto-Close Stale Test Results in Configuration Compliance

# Use Auto-Close Stale Test Results in Configuration Compliance {#ariaid-title1}

* Release version: Zurich
* 
* Updated August 8, 2025
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 2 minutes to read

Activate Auto-Close Stale Test Results (TRs) to automatically close older test results based on filter conditions that you set.

## Before you begin

For more information about this feature, key terms, and any setup that may be required for your third-party integrations that import test result data, see [Automatically closing stale test results in Configuration Compliance](https://www.servicenow.com/docs/ERqHpNQSriZY68LYfwryNA "You can activate the Auto-Close Stale Test Results feature to automatically close older test results not recently found by your third-party integrations. Moving these test results to Closed-Stale reduces the number of active test results and remediation tasks in your instance and helps you reconcile assets in your Configuration Management Database (CMDB).").

Role required: sn_vulc.admin

## Procedure

1. Navigate to AllConfiguration ComplianceAdministrationAuto-Close Stale Test Results.
2. Fill in the fields  
   {#cc-autoclose-tr__table_udn_y2q_fsb__entry__2}

   | Field | Value |
   |-|-|
   | Name | Name for this configuration record. |
   | Active | If selected, this record is active and it will automatically close any test results that match its filter criteria. |
   | Ignore stale TRs for deferred TRs | If selected, any TRs that are mapped to the In-review or Deferred states are ignored and not closed. If you clear this option, any TRs that match your criteria will be closed. |
   | Execution order | 100 is the default value. This value determines the order of execution in ascending order for each configuration record used for locating and marking test results that are stale. |
   | Description | A description for this record. This text might help you easily find it again if you create a larger number of records. |
   | Condition | The filtering conditions used for finding TRs that you want closed. The default filter is Discovered ItemLast scan. |
   [ ]

   {#cc-autoclose-tr__table_udn_y2q_fsb}
3. Click Submit.  
   The scheduled job, Auto-Close Stale Test Results, runs daily. This job identifies the TRs based on the conditions that you provided and transitions the ones that match to State:
   Closed.

   After TRs are marked as State: Closed-Stale, if the scanner finds these TRs again, the test results are reopened and the states transition back toOpen.

   If a TR is marked as State: Closed-Stale, and the scanner finds that it has been fixed (Resolution: Fixed), the TR transitions to State: Closed
   Resolution: Fixed. TRs that have Result: Pass remain as State: Closed Resolution: Fixed. States also roll
   up to remediation tasks as described in the following list:
   1. If any TRs in a remediation task are Open, the remediation task state is not changed.
   2. If at least one TR is State: Closed Resolution: Fixed and the rest are Closed-Stale, the remediation task state transitions to Closed Resolution: Fixed.
   3. If all the TRs in a remediation task are Closed Resolution: Fixed, the TRG state transitions to State: Closed Resolution: Canceled.

   {#cc-autoclose-tr__ol_rfw_nzp_fsb}

   For more information about state transitions, see [Test result and remediation task state transitions in the Configuration Compliance application](https://www.servicenow.com/docs/gIY40D54mDkNjwXgx_Li7w "The states of configuration test records and their associated remediation tasks (RTs) are impacted if test result records are deferred, resolved, reopened, and transferred to other remediation efforts (REs).").

*[\>]: and then


