Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. =====Notification Email Scripts===== ---- ====Incident Additional Details==== <code javascript IncAdditonalDetails.js> (function runMailScript(current, template, email, email_action, event) { template.print('<p><font size="4" color="#999999" face="helvetica"><strong>'); template.print(gs.getMessage('Additional Details:')); template.print('</strong></font></p>'); template.print('<font size="3" color="#999999" face="helvetica">'); 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('<p>' + i18nCaller + '<br/>'); template.print('<p>' + i18nContactMethod + '</p>'); template.print('<p>' + i18nCagegory + '</p>'); template.print('<p>' + i18nPriority + '</p>'); template.print('<p>' + i18nShortDescription + '</p>'); template.print('</font>'); })(current, template, email, email_action, event); </code> ---- ====Incident Subject==== <code javascript incidentSubject.js> (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); </code> ---- notification_email_scripts.txt Last modified: 11/24/2025YYY 05:12by johnsonjohn