=====Notification Email Scripts===== ---- ====Incident Additional Details==== (function runMailScript(current, template, email, email_action, event) { template.print('

'); template.print(gs.getMessage('Additional Details:')); template.print('

'); template.print(''); var i18nCaller = gs.getMessage('Caller: {0}', '${caller_id}'); var i18nContactMethod = gs.getMessage('Preferred contact method: {0}', '${severity}'); var i18nCagegory = gs.getMessage('Category: {0}', '${category}'); var i18nPriority = gs.getMessage('Priority: {0}', '${priority}'); var i18nShortDescription = gs.getMessage('Short description: {0}', '${short_description}'); template.print('

' + i18nCaller + '
'); template.print('

' + i18nContactMethod + '

'); template.print('

' + i18nCagegory + '

'); template.print('

' + i18nPriority + '

'); template.print('

' + i18nShortDescription + '

'); template.print('
'); })(current, template, email, email_action, event);
---- ====Incident Subject==== (function runMailScript(/* GlideRecord */ current, /* TemplatePrinter */ template, /* Optional EmailOutbound */ email, /* Optional GlideRecord */ email_action, /* Optional GlideRecord */ event) { var subject = email.subject; var priority = current.priority.getDisplayValue(); var priorityText = priority.match(/([A-Za-z])\w+/)[0]; email.setSubject(priorityText + ' ' + subject); })(current, template, email, email_action, event); ----