Why does the outage short description shows 'undefined outage'?

sugand
Tera Contributor

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.

sugand_0-1693497998430.png


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)

sugand_1-1693498100828.png


How to achieve this? It would be great if anyone can guide on this.

Thanks,

Sugan

 

1 REPLY 1

benn23
ServiceNow Employee
ServiceNow Employee

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";