<h2>How to use the OOB 'Incident Survey' notification when incident gets closed. Is it possible to use that notification where it contains, Incident and Survey link in the HTML body?</h2><br/><div style="overflow-x:auto"><article><div ><h3 >Issue </h3><section><ul style="list-style-type: square; list-style-position: inside;"><li>When incident is getting closed, a survey notification should send out and it should contain Survey and Incident link like the OOB notification 'Incident Survey'.</li></ul></section></div><div ><h3 >Release</h3><section><ul style="list-style-type: square; list-style-position: inside;"><li>All releases.</li></ul></section></div><div ><h3 >Cause</h3><section><ul style="list-style-type: square; list-style-position: inside;"><li>N/A</li></ul></section></div><div ><h3 >Resolution</h3><section><ul style="list-style-type: square; list-style-position: inside;"><li>Make sure the repeat interval of trigger condition is all set to oo.</li><li>Incident Survey Notification can be used and furthermore, a below email script should be created and attached to the notification email scripts of the Incident Survey Notification.</li><li>Email Script = incident_survey_link_assessment_2 <div id="activity_c89c0cc7dbb9d4509540e15b8a961916"> <div><br />(function runMailScript(current, template, email, email_action, event) {<br />gs.log("KO: current.getUniqueValue(): " + current.getUniqueValue());<br /><br />var gr = new GlideRecord('asmt_assessment_instance');<br />gr.addQuery('task_id', current.getUniqueValue());<br />gr.setLimit(1);<br />gr.orderByDesc('number');<br />gr.query();<br />gs.log("KO: getRowCount(): " + gr.getRowCount());<br />if (gr.next()) {<br />var link = new AssessmentUtils().getAssessmentInstanceURL(gr.getUniqueValue());<br />gs.log("KO: link: " + link);<br /><br />template.print('<p><font size="4" color="#999999" face="helvetica">');<br />template.print(gs.getMessage('We value your input. Please help us by taking the time to fill out this short survey:'));<br />template.print('</font></p>');<br />template.print('<p><font face="helvetica">');<br />template.print('<a style="font-size: 16px; font-family: Helvetica, Arial, sans-serif; color: #ffffff; text-decoration: none; border-radius: 3px; -webkit-border-radius: 3px; -moz-border-radius: 3px; background-color: #278efc; border: 1px solid #0368d4; display: inline-block; padding: 5px" href="' + link + '">' + gs.getMessage('Click here to take the survey') + '</a>');<br />template.print('</font></p>');<br />}<br /><br />})(current, template, email, email_action, event);</div> </div> <br /></li></ul></section></div></article></div>