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.
UI action - add closed incidents on related list of problem - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • UI action - add closed incidents on related list of problem
KB0859551

UI action - add closed incidents on related list of problem


1403 Views Last updated : Aug 25, 2023 public Copy Permalink
KB Summary by Now Assist

Issue

Customer would like to add closed incidents in the related list of a problem. Customer were not able to do that because the filter on the incident list shown did not allow you to alter the active is true condition. 

Cause

OOB script include in the UI action

Resolution

1. Go to the incident record in the related list of the problem. Right click on any of the header and select configure > UI action

2. In the UI action, search for 'Add' under the Name field. Open the record.

3. Hover over the 'BulkAddIncidents' in line 2 of the script and open it in a new tab.

4. In 'BulkAddIncidents' script include, in line 24 of the script, remove "active=true^" from the "var fixedQuery".
Add Instance

5. Update the record.

Customer should be able to add closed incidents to the related list of the problem after this. 

Please know that this alteration to the script include is deemed as customisation. Therefore, customer will need to keep that in mind when upgrading to new releases in the future.


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.