Add Images to approve/reject Incident resolution

We all know as end user we get this tacky mails every now and then on Incident resolution to Approve or Reject an incident. The hyperlink is quite boring and not 21st century enough! So I have created below mail script which can be embedded in Incident resolution mails to approve or reject using Thumbs Up or Thumbs Down. Very Facebooky! Check below mail script:

var image = "thumbs_up.png";
var response = "approve";
var mark = email.watermark;
var number = current.number;
var emailAddress = "";
//Different number if from an approval
if (current.getTableName().indexOf("sysapproval") != -1){
number = current.sysapproval.number;
var mailLink =

'<a href="mailto:'+ emailAddress + '?subject= Re:' + number + ' ' + response +'&body=%0A%0A' + mark + '"><img src="' + image + '" width="55" height="55" /></a>';


Just replace ‘thumbs_up.png’ image with a ‘thumbs_down.png’ image and set response to reject to create a ‘reject’ mail script.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s