Community Alums
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2024 04:30 AM
write reference qual condition on CI field that based on current category ,related CI should be visible like that
Create script include and call it from above ref qual by passing parameter as category values
example : javascript: getCIs(current.category);
getCIs: function(category) {
var cIs = [];
var ciGR = new GlideRecord('cmdb_ci');
ciGR.addQuery('category', category);
ciGR.query();
while (ciGR.next()) {
cIs.push( ciGR.sys_id.toString(),}
}
return 'sys_idIN'+cIs.join(',')