Advanced reference qualifier on cmdb_ci
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2024 07:54 AM
Hello,
I am trying to modify the advanced reference qualifier on the incident form for cmdb_ci field.
I tried adding an extra condition with name not empty. But it is not working.
javascript: (['incident', 'problem'].indexOf(current.sys_class_name + '') == -1? '' : 'operational_statusNOT IN' + new OpsStatusFilter('cmdb_ci').by('CreateTask').join() + '^nameISNOTEMPTY');
Thanks
- Labels:
-
Architect
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2024 01:20 PM
Are you modifying the dictionary for task or the dictionary override for incident? 😄
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2024 02:28 PM
I am modifying on the task table it self, as that is the requirement across Incident, Problem, change and service requests.
If we can apply the filter as name not empty in override reference qualifier, please let me know.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2024 11:31 PM
If incident, problem or change have dictionary overrides for the reference qualifier, those will overwrite whatever is defined for task.
If I were to implement this, I would do it using the dictionary overrides.
If you want to write less code, put it into a Script Include and call that from all dictionary overrides.