Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2025 12:33 PM
Hello!
I am trying to troubleshoot a custom script that should be assigning VITs to the group in the variable u_event_group. This script is assigning records that do not have this custom dictionary entry and/or the dictionary entry is empty. If anyone could review this script and identify potential bugs, I would greatly appreciate it.
var gr = new GlideRecord('server');
var ciSID = current.sys_id;
gr.addQuery('sys_id', ciSID);
gr.query();
if (gr.next()) {
var eventGroup = gr.getValue('u_event_group');
if (eventGroup && eventGroup !== '') {
current.assignment_group = eventGroup;
} else {
// No group found
}
} else {
// No group found
}
Solved! Go to Solution.
Labels:
- Labels:
-
CMDB
-
Vulnerability Response