Dictionary Override - Reference Qualifier Question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
Hello all,
Good day!!
On the Incident form, when a configuration item is selected from "Mapped Application Service" (cmdb_ci_service_discovered) class, then only their related Services has to be shown for selection in the "Service" (business_service) field, but not all services.
For this I have written a Script include, but
the problem here is, when I open the "Service" field on the dictionary level, I see there is a Dictionary Override, on the Incident. and that is oob one.
javascript:new TaskUtils().getConfigurationItemFilter(current);
Now without disturbing the existing functionality, I want to include my script include results also to this reference qualifier, like if(sys_class_name == 'cmdb_ci_service_discovered'),
My Script Include:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
32m ago
On the Incident form, the Service (business_service) field already has a Dictionary Override with the OOB reference qualifier:
javascript:new TaskUtils().getConfigurationItemFilter(current);
You want to restrict services only when the selected Configuration Item (CI) is of class cmdb_ci_service_discovered.
if you directly replace or modify the dictionary override, you risk breaking the OOB behaviour of TaskUtils().getConfigurationItemFilter(current) which is used widely across ITSM.
Try not to remove or overwrite the OOB reference qualifier. Instead, extend it by combining your custom filter logic with the OOB filter.