<?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 Re: incident email notification priority in ITSM forum</title>
    <link>https://www.servicenow.com/community/itsm-forum/incident-email-notification-priority/m-p/3190455#M536376</link>
    <description>&lt;P&gt;Hi Ankur,&lt;/P&gt;&lt;PRE&gt;template.print('Priority' + current.priority);&lt;/PRE&gt;&lt;P&gt;this email script is not working.&lt;/P&gt;&lt;P&gt;Actually i am using template is Major incident SMS notify template. This email script is not working in the template.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 27 Feb 2025 11:18:13 GMT</pubDate>
    <dc:creator>sureshp89882164</dc:creator>
    <dc:date>2025-02-27T11:18:13Z</dc:date>
    <item>
      <title>incident email notification priority</title>
      <link>https://www.servicenow.com/community/itsm-forum/incident-email-notification-priority/m-p/3189999#M536334</link>
      <description>&lt;P&gt;Need solution for&lt;SPAN&gt;&amp;nbsp;the incident email notification template priority should be display as like value(1,2,3) instead of display as label(1-Critical, 2-High, 3-Moderate).&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2025 05:25:30 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/incident-email-notification-priority/m-p/3189999#M536334</guid>
      <dc:creator>sureshp89882164</dc:creator>
      <dc:date>2025-02-27T05:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: incident email notification priority</title>
      <link>https://www.servicenow.com/community/itsm-forum/incident-email-notification-priority/m-p/3190022#M536336</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/688339"&gt;@sureshp89882164&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;how are you printing it?&lt;/P&gt;
&lt;P&gt;If you are doing it using ${priority} then it will show the label&lt;/P&gt;
&lt;P&gt;you will have to use email script for this and invoke this email script in notification body&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;(function runMailScript(current, template, email, email_action, event) {

    // Add your code here
	template.print('Priority' + current.priority);

})(current, template, email, email_action, event);&lt;/LI-CODE&gt;
&lt;P&gt;If my response helped please mark it correct and close the thread so that it benefits future readers.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2025 05:49:19 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/incident-email-notification-priority/m-p/3190022#M536336</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2025-02-27T05:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: incident email notification priority</title>
      <link>https://www.servicenow.com/community/itsm-forum/incident-email-notification-priority/m-p/3190025#M536337</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/688339"&gt;@sureshp89882164&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; You can try the below logic in your email script and call it in your notification. If both the Label and Value are the same. and you want to print it like (1,2,3)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;// Get the display value of priority
var priorityDisplayValue = current.priority.getDisplayValue();

// Declare a temporary variable for the priority number
var incPriority;

// Use if-else to check display value and set the appropriate numerical value
if (priorityDisplayValue == "1 - Critical") {
    incPriority = 1;
} else if (priorityDisplayValue == "2 - High") {
    incPriority = 2;
} else if (priorityDisplayValue == "3 - Moderate") {
    incPriority = 3;
}  else {
    // Default value or handle unexpected priority
    incPriority = "N/A";
}

// Add the incPriority variable to the email template model where you want to use it
template.print(incPriority);&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Kindly mark correct and helpful, if applicable.&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2025 05:56:06 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/incident-email-notification-priority/m-p/3190025#M536337</guid>
      <dc:creator>Chetan Mahajan</dc:creator>
      <dc:date>2025-02-27T05:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: incident email notification priority</title>
      <link>https://www.servicenow.com/community/itsm-forum/incident-email-notification-priority/m-p/3190455#M536376</link>
      <description>&lt;P&gt;Hi Ankur,&lt;/P&gt;&lt;PRE&gt;template.print('Priority' + current.priority);&lt;/PRE&gt;&lt;P&gt;this email script is not working.&lt;/P&gt;&lt;P&gt;Actually i am using template is Major incident SMS notify template. This email script is not working in the template.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2025 11:18:13 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/incident-email-notification-priority/m-p/3190455#M536376</guid>
      <dc:creator>sureshp89882164</dc:creator>
      <dc:date>2025-02-27T11:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: incident email notification priority</title>
      <link>https://www.servicenow.com/community/itsm-forum/incident-email-notification-priority/m-p/3190459#M536377</link>
      <description>&lt;P&gt;Hi Chetan,&lt;/P&gt;&lt;P&gt;Unfortunately this email script is not working.&lt;/P&gt;&lt;P&gt;Actually i am using the template is Major incident SMS notify template. This email script is not working in the template.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2025 11:19:50 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/incident-email-notification-priority/m-p/3190459#M536377</guid>
      <dc:creator>sureshp89882164</dc:creator>
      <dc:date>2025-02-27T11:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: incident email notification priority</title>
      <link>https://www.servicenow.com/community/itsm-forum/incident-email-notification-priority/m-p/3190507#M536378</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/688339"&gt;@sureshp89882164&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;where are you using that? share the complete details&lt;/P&gt;
&lt;P&gt;If my response helped please mark it correct and close the thread so that it benefits future readers.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2025 11:47:36 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/incident-email-notification-priority/m-p/3190507#M536378</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2025-02-27T11:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: incident email notification priority</title>
      <link>https://www.servicenow.com/community/itsm-forum/incident-email-notification-priority/m-p/3190708#M536394</link>
      <description>&lt;P&gt;I am using this one in MIM SMS notify template&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2025 13:53:01 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/incident-email-notification-priority/m-p/3190708#M536394</guid>
      <dc:creator>sureshp89882164</dc:creator>
      <dc:date>2025-02-27T13:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: incident email notification priority</title>
      <link>https://www.servicenow.com/community/itsm-forum/incident-email-notification-priority/m-p/3191416#M536412</link>
      <description>&lt;P&gt;using in MIM SMS notification template. And this template is part of email notification(communications).&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2025 02:55:50 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/incident-email-notification-priority/m-p/3191416#M536412</guid>
      <dc:creator>sureshp89882164</dc:creator>
      <dc:date>2025-02-28T02:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: incident email notification priority</title>
      <link>https://www.servicenow.com/community/itsm-forum/incident-email-notification-priority/m-p/3191420#M536413</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/688339"&gt;@sureshp89882164&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if email script is supported there then it's feasible.&lt;/P&gt;
&lt;P&gt;if you can use scripting then it's feasible&lt;/P&gt;
&lt;P&gt;If not then it's not possible to achieve&lt;/P&gt;
&lt;P&gt;If my response helped please mark it correct and close the thread so that it benefits future readers.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2025 03:00:01 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/incident-email-notification-priority/m-p/3191420#M536413</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2025-02-28T03:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: incident email notification priority</title>
      <link>https://www.servicenow.com/community/itsm-forum/incident-email-notification-priority/m-p/3191509#M536417</link>
      <description>&lt;P&gt;Please find the below one MIM SMS template&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2025 05:20:25 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/incident-email-notification-priority/m-p/3191509#M536417</guid>
      <dc:creator>sureshp89882164</dc:creator>
      <dc:date>2025-02-28T05:20:25Z</dc:date>
    </item>
  </channel>
</rss>

