Configuration item mapping
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-02-2024 04:17 AM
Hello Everyone!!
I have the requirement of adding new categories and sub-categories on the incident table, after adding those new categories and sub categories, i want to map the configuration items for the particular categories in the incident form as the Configuration item field is mandatory for the form submission. Any ideas/Suggestion would be sincerely appreciated.
TYSM!!
- 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(',')
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-04-2024 06:24 AM
Hello @Mani A
This is not working, I got the issue with populating the CI's for the new categories. Any other suggestions!
Thanks In Advance.