We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

How to add configuration item to contextual search on the incident form?

Steve Wilson2
Kilo Explorer

I am trying to add configuration item as part of the contextual search on an incident form. When I go to the table configuration in contextual search and add a search field I do not see configuration item.

10 REPLIES 10

hvrdhn88
Giga Patron

seems like that's reference field , that's the reason. 

hvrdhn88
Giga Patron

Procedure

  1. Navigate to Contextual Search > Table Configuration and open the record.
  2. Click New in the Search Fields related list.
  3. Select the field to use and the order for that field.
    Note: Only text fields can be selected.

brianlan25
Kilo Patron

I'm guessing it has to do with it being a reference field.  Maybe you can follow this docs article Create a filter configuration using script so you can return the display value.

That looks like the right path but it doesnt change my results.

I added query_table.addQuery('cmdb_ci', current.cmdb_ci); to the filter configuration but no additional articles are shown.

Both the incident and the knowledge article are pointing to the same CI in the cmdb_ci field.

 

find_real_file.png