Why does the outage short description shows 'undefined outage'?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2023 09:12 AM
Hi,
While creating outage on Major Incident workbench, we have changed the configuration item field type as 'list' instead of 'reference' in order to select multiple items.
Here in the short description it shows 'undefined outage', it should rather show the ci items with ' , ' separated.
For example: Short description - "1MT2P73, WIN2022-DEVOPS Outage" (whatever the configuration items we select)
How to achieve this? It would be great if anyone can guide on this.
Thanks,
Sugan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2023 09:54 AM
The 'Create Outage' UI Action calls a script include called 'CreateOutageUtilSNC.' The function getNewOutageLink function is setting the short description by dot-walking to the CI, which won't work since you've changed your cmdb_ci field to a glide_list, which IMO is not a good idea as so much functionality is driven by that field. Use the related lists (affected CI's) instead.
Anyway, you'll need to change this line:
shortDesc = contentGr.cmdb_ci.name + " Outage";
to this:
shortDesc = contentGr.cmdb_ci.getDisplayValue() + " Outage";