<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Addition of hyperlink for incident, change, knowledge article number in Todos Approval widget in Employee Slate and Employee Center forum</title>
    <link>https://www.servicenow.com/community/employee-slate-and-employee/addition-of-hyperlink-for-incident-change-knowledge-article/m-p/3316019#M13653</link>
    <description>&lt;P&gt;There is out of the box widget named "todos approval".&amp;nbsp; In this widget, there is a message appears in my tasks that "Do you want to approve the following (document ID) (short description)?". In my scenario, this message create knowledge base article number with short description in text format. I need to add hyperlink to the document ID (knowledge base article number) so that it can redirect to the particular one.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached HTML body and server script for the reference.&amp;nbsp; Your kind help is appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HTML body:-&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;div class="panel" id="todo-approval-panel"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;div class="panel-body" id="todo-approval-panel-heading" ng-class="approval-requested"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;h4 id="approval-message" ng-if="! data.isPosted"&amp;gt;{{data.approvalText}}&amp;lt;/h4&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;sp-widget widget="data.approvalActionsWidget"&amp;gt;&amp;lt;/sp-widget&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Server script:-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var sysApprovalRecord = new GlideRecordSecure('sysapproval_approver');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data.shortDescription = "";&lt;/P&gt;&lt;P&gt;if (sysApprovalRecord.get(sysId)) {&lt;/P&gt;&lt;P&gt;data.isPosted = false;&lt;/P&gt;&lt;P&gt;if (sysApprovalRecord.state.toString() !== REQUESTED_STATE)&lt;/P&gt;&lt;P&gt;data.isPosted = true;&lt;/P&gt;&lt;P&gt;if (!gs.nil(sysApproval Record.sysapproval) &amp;amp;&amp;amp; !gs.nil(sysApproval Record.sysapproval.short_description))&lt;/P&gt;&lt;P&gt;data.shortDescription = sysApproval Record.sysapproval.short_description;&lt;/P&gt;&lt;P&gt;else if (!gs.nil (sysApprovalRecord.document_id))&lt;/P&gt;&lt;P&gt;data.shortDescription = !gs.nil(sysApproval Record.document_id.short_description) ? (sysApprovalRecord.document_id.number + " "+sysApproval Record.document_id.short_description): sysApprovalRecord.document_id.number;&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;data.shortDescription = !gs.nil (sysApproval Record.sysapproval) ?&lt;/P&gt;&lt;P&gt;sysApprovalRecord.sysapproval.number: "";&lt;/P&gt;&lt;P&gt;data.approvalText = gs.getMessage("Do you want to approve the following: {0}?", data.shortDescription);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Jul 2025 16:52:29 GMT</pubDate>
    <dc:creator>st001067273</dc:creator>
    <dc:date>2025-07-09T16:52:29Z</dc:date>
    <item>
      <title>Addition of hyperlink for incident, change, knowledge article number in Todos Approval widget</title>
      <link>https://www.servicenow.com/community/employee-slate-and-employee/addition-of-hyperlink-for-incident-change-knowledge-article/m-p/3316019#M13653</link>
      <description>&lt;P&gt;There is out of the box widget named "todos approval".&amp;nbsp; In this widget, there is a message appears in my tasks that "Do you want to approve the following (document ID) (short description)?". In my scenario, this message create knowledge base article number with short description in text format. I need to add hyperlink to the document ID (knowledge base article number) so that it can redirect to the particular one.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached HTML body and server script for the reference.&amp;nbsp; Your kind help is appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HTML body:-&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;div class="panel" id="todo-approval-panel"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;div class="panel-body" id="todo-approval-panel-heading" ng-class="approval-requested"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;h4 id="approval-message" ng-if="! data.isPosted"&amp;gt;{{data.approvalText}}&amp;lt;/h4&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;sp-widget widget="data.approvalActionsWidget"&amp;gt;&amp;lt;/sp-widget&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Server script:-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var sysApprovalRecord = new GlideRecordSecure('sysapproval_approver');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data.shortDescription = "";&lt;/P&gt;&lt;P&gt;if (sysApprovalRecord.get(sysId)) {&lt;/P&gt;&lt;P&gt;data.isPosted = false;&lt;/P&gt;&lt;P&gt;if (sysApprovalRecord.state.toString() !== REQUESTED_STATE)&lt;/P&gt;&lt;P&gt;data.isPosted = true;&lt;/P&gt;&lt;P&gt;if (!gs.nil(sysApproval Record.sysapproval) &amp;amp;&amp;amp; !gs.nil(sysApproval Record.sysapproval.short_description))&lt;/P&gt;&lt;P&gt;data.shortDescription = sysApproval Record.sysapproval.short_description;&lt;/P&gt;&lt;P&gt;else if (!gs.nil (sysApprovalRecord.document_id))&lt;/P&gt;&lt;P&gt;data.shortDescription = !gs.nil(sysApproval Record.document_id.short_description) ? (sysApprovalRecord.document_id.number + " "+sysApproval Record.document_id.short_description): sysApprovalRecord.document_id.number;&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;data.shortDescription = !gs.nil (sysApproval Record.sysapproval) ?&lt;/P&gt;&lt;P&gt;sysApprovalRecord.sysapproval.number: "";&lt;/P&gt;&lt;P&gt;data.approvalText = gs.getMessage("Do you want to approve the following: {0}?", data.shortDescription);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jul 2025 16:52:29 GMT</pubDate>
      <guid>https://www.servicenow.com/community/employee-slate-and-employee/addition-of-hyperlink-for-incident-change-knowledge-article/m-p/3316019#M13653</guid>
      <dc:creator>st001067273</dc:creator>
      <dc:date>2025-07-09T16:52:29Z</dc:date>
    </item>
  </channel>
</rss>

