How to add configuration item to contextual search on the incident form?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-09-2019 07:32 AM
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.
- Labels:
-
Incident Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-09-2019 07:39 AM
seems like that's reference field , that's the reason.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-09-2019 07:41 AM
Procedure
- Navigate to Contextual Search > Table Configuration and open the record.
- Click New in the Search Fields related list.
- Select the field to use and the order for that field.
Note: Only text fields can be selected.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-09-2019 07:55 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-09-2019 08:36 AM
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.