(function runMailScript(current, template, email, email_action, event) { var sub = gs.getMessage("Incident {0} has been opened for you", current.getValue('number')); email.setSubject(sub); var incLink = current.getLink(); var href = '<a href="' + incLink + '" target="_blank">' + current.getValue('number') + '</a>'; var openingLine = gs.getMessage("The incident, {0} - {1}, has been opened for you and is being reviewed ", [href, current.getValue('short_description')]); var openingLine2 = '<a href="' + gs.getProperty('glide.servlet.uri') + 'sp?id=ticket&table=' + current.sys_class_name + '&sys_id=' + current.sys_id + '">Click Here</a>'; template.print(openingLine); template.print('To resolve or view your incident ' + openingLine2); })(current, template, email, email_action, event);
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter