Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
Issues with the Remediation Status and Remediation Target fields in the Vulnerable item record - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • Issues with the Remediation Status and Remediation Target fields in the Vulnerable item record
KB0759194

Issues with the Remediation Status and Remediation Target fields in the Vulnerable item record


2684 Views Last updated : Nov 4, 2024 public Copy Permalink
KB Summary by Now Assist

Issue

There are several vulnerable items where the remediation target dates are past but the remediation status field still says "In-Flight". These should say past due. The evaluate remediation target scheduled job is running normally.

Cause

The scheduled job "Evaluate remediation targets" might have been modified and it might cause the issue

Resolution


Please note that there is a scheduled job named "Evaluate remediation targets" that runs daily to update the 'remediation Target' and 'remediation status' fields in the Vulnerable item record.

There are two function calls made to the script include "VulnerabilityTTRUtil" in the out of the box scheduled job:

new sn_vul.VulnerabilityTTRUtil().evaluateTTRs();
new sn_vul.VulnerabilityTTRUtil().sendNotifications();

After verifying the script include "VulnerabilityTTRUtil", it turns out that the part of the script that updates the "Remediation Target" is inside the function evaluateTTRs() while the script that updates the "Remediation status" is inside the function sendNotifications()

The function sendNotifications() updates the 'remediation status' and if it is commented out, the 'remediation status' will no longer be updated.

Similarly, if the function evaluateTTRs() is commented out, then the 'remediation Target' will not be updated properly.

Both the function calls are needed to update the "Remediation Target" and "Remediation Status" fields properly. Please note that the order of those function calls are also important.

We might face issues with the 'Remediation Status' if the order of the function calls is flipped. It is recommended to NOT change the order of the function calls.


The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.