Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

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

I'm not 100% sure how this coding works in this section but your are still using the sys_id of the CI.  Maybe change line 14 to query_table.addQuery('cmdb_ci', current.cmdb_ci.getDisplayValue());

Pradeep Tiwari1
Tera Contributor

@Steve Wilson ,

you can compare it with display value in filter conditions.

find_real_file.png

Snehal2
Kilo Guru

Hi Steve,

Were you able to get he solution?

Regards,

Snehal

raja_5
Tera Expert

Hi Steve,

 

Have you got the solution for this?

contextual search searches text fields. I don't remember why I gave the original answer I did. What is the requirements you are tying to achieve.