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.

I Want to show the list of principal class CI's in the configuration item field in incident, change

RavichandraG
Giga Contributor

I want to show the list of principal class ci's present the cmdb_ci.list in incident and change request forms in configuration item field.

13 REPLIES 13

Kieran Anson
Kilo Patron

Hi,

OOTB you can use the following reference qualifier to filter your configuration item reference field to only show principal class CIs

javascript:new TaskUtils().getConfigurationItemFilter(current);

In addition, the following system property will need to have the incident and change_request table addded (if not already there) so the filtering is enabled

  • com.snc.task.principal_class_filter

Hi @Kieran Anson ,

I have already created the system property and also added the above code in reference qualifier. But it is not working.

 

Regards,

Ravichandra G

Can you share a screenshot of your configuration? Note, this will need to be done within the dictionary override as the cmdb_ci field is on the task table and will likely already be overridden on child tables

Here the screen shot 

RavichandraG_0-1760529790088.png