<?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: How to write a client script to calculate impact and urgency so that priority should autopopulate in ITSM forum</title>
    <link>https://www.servicenow.com/community/itsm-forum/how-to-write-a-client-script-to-calculate-impact-and-urgency-so/m-p/652726#M224505</link>
    <description>&lt;P&gt;Sample script as below.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/36001iDE6B9125EBF5747B/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE class="language-markup"&gt;&lt;CODE&gt;function onChange(control, oldValue, newValue, isLoading) {
   if (isLoading || newValue == '') {
      return;
   }

	var getimpact=g_form.getValue('impact'); //replace impact  variable name
	alert('Impact user selected is '+getimpact); //Just for check can be commented
	
	var geturgency=g_form.getValue('urgency'); //replace urgency with variable name
	alert('Urgency user selected is '+geturgency); //for check can be commented
	
	if(getimpact=='high' &amp;amp;&amp;amp; geturgency=='high')
		{
			g_form.setValue('priority','high'); //replace priority with variable name &amp;amp; set the value as high
		}
	
	
   //Type appropriate comment here, and begin script below
   
}&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Note: You need to create 2 one for impact &amp;amp; other for urgency &amp;amp; replace variables &amp;amp; values accordingly.&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 29 Oct 2020 10:14:32 GMT</pubDate>
    <dc:creator>Jaspal Singh</dc:creator>
    <dc:date>2020-10-29T10:14:32Z</dc:date>
    <item>
      <title>How to write a client script to calculate impact and urgency so that priority should autopopulate</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-write-a-client-script-to-calculate-impact-and-urgency-so/m-p/652720#M224499</link>
      <description>&lt;P&gt;How to write a client script to calculate impact and urgency so that priority should auto populate&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2020 09:29:21 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-write-a-client-script-to-calculate-impact-and-urgency-so/m-p/652720#M224499</guid>
      <dc:creator>Himabindu</dc:creator>
      <dc:date>2020-10-28T09:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a client script to calculate impact and urgency so that priority should autopopulate</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-write-a-client-script-to-calculate-impact-and-urgency-so/m-p/652721#M224500</link>
      <description>&lt;P&gt;Hi Himabindu,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instead of Client script why don't you try for &lt;A href="https://docs.servicenow.com/bundle/paris-platform-administration/page/administer/field-administration/reference/r_CreateCustomDataLookups.html#r_CreatingCustomDataLookups" target="_blank"&gt;Data lookup Definitions&lt;/A&gt;. Type Data Lookup definitions in Application navigator for check.&lt;/P&gt;
&lt;P&gt;Something that is used for setting Priority for incident on basis of Impact &amp;amp; Urgency.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2020 09:33:32 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-write-a-client-script-to-calculate-impact-and-urgency-so/m-p/652721#M224500</guid>
      <dc:creator>Jaspal Singh</dc:creator>
      <dc:date>2020-10-28T09:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a client script to calculate impact and urgency so that priority should autopopulate</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-write-a-client-script-to-calculate-impact-and-urgency-so/m-p/652722#M224501</link>
      <description>&lt;P&gt;I am trying to display it on serviceportal via recordproducer&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2020 10:04:18 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-write-a-client-script-to-calculate-impact-and-urgency-so/m-p/652722#M224501</guid>
      <dc:creator>Himabindu</dc:creator>
      <dc:date>2020-10-28T10:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a client script to calculate impact and urgency so that priority should autopopulate</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-write-a-client-script-to-calculate-impact-and-urgency-so/m-p/652723#M224502</link>
      <description>&lt;P&gt;&lt;SN-MENTION class="sn-mention" table="live_profile" sysid="e56c4957db80d85c2be0a851ca9619cb"&gt;@Himabindu&lt;/SN-MENTION&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For this you would require onChange client script on both the variables&lt;/P&gt;
&lt;P&gt;1) Impact&lt;/P&gt;
&lt;P&gt;2) Urgency&lt;/P&gt;
&lt;P&gt;Regards&lt;BR /&gt;Ankur&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2020 10:07:14 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-write-a-client-script-to-calculate-impact-and-urgency-so/m-p/652723#M224502</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2020-10-28T10:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a client script to calculate impact and urgency so that priority should autopopulate</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-write-a-client-script-to-calculate-impact-and-urgency-so/m-p/652724#M224503</link>
      <description>&lt;P&gt;Thanks for the clarification. In that case you need onChange() client scripts for both Impact &amp;amp; Urgency felds with all possible combinations so that Priority shows up correctly.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2020 10:13:22 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-write-a-client-script-to-calculate-impact-and-urgency-so/m-p/652724#M224503</guid>
      <dc:creator>Jaspal Singh</dc:creator>
      <dc:date>2020-10-28T10:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a client script to calculate impact and urgency so that priority should autopopulate</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-write-a-client-script-to-calculate-impact-and-urgency-so/m-p/652725#M224504</link>
      <description>&lt;P&gt;Can you please me with scripting part&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2020 10:19:47 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-write-a-client-script-to-calculate-impact-and-urgency-so/m-p/652725#M224504</guid>
      <dc:creator>Himabindu</dc:creator>
      <dc:date>2020-10-28T10:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a client script to calculate impact and urgency so that priority should autopopulate</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-write-a-client-script-to-calculate-impact-and-urgency-so/m-p/652726#M224505</link>
      <description>&lt;P&gt;Sample script as below.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/36001iDE6B9125EBF5747B/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE class="language-markup"&gt;&lt;CODE&gt;function onChange(control, oldValue, newValue, isLoading) {
   if (isLoading || newValue == '') {
      return;
   }

	var getimpact=g_form.getValue('impact'); //replace impact  variable name
	alert('Impact user selected is '+getimpact); //Just for check can be commented
	
	var geturgency=g_form.getValue('urgency'); //replace urgency with variable name
	alert('Urgency user selected is '+geturgency); //for check can be commented
	
	if(getimpact=='high' &amp;amp;&amp;amp; geturgency=='high')
		{
			g_form.setValue('priority','high'); //replace priority with variable name &amp;amp; set the value as high
		}
	
	
   //Type appropriate comment here, and begin script below
   
}&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Note: You need to create 2 one for impact &amp;amp; other for urgency &amp;amp; replace variables &amp;amp; values accordingly.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2020 10:14:32 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-write-a-client-script-to-calculate-impact-and-urgency-so/m-p/652726#M224505</guid>
      <dc:creator>Jaspal Singh</dc:creator>
      <dc:date>2020-10-29T10:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a client script to calculate impact and urgency so that priority should autopopulate</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-write-a-client-script-to-calculate-impact-and-urgency-so/m-p/652727#M224506</link>
      <description>&lt;P&gt;Hi Ankur, need some information can you message to my my id please. ranjithparam99@gmail.com&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2020 10:37:03 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-write-a-client-script-to-calculate-impact-and-urgency-so/m-p/652727#M224506</guid>
      <dc:creator>Raju39</dc:creator>
      <dc:date>2020-10-29T10:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a client script to calculate impact and urgency so that priority should autopopulate</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-write-a-client-script-to-calculate-impact-and-urgency-so/m-p/652728#M224507</link>
      <description>&lt;P&gt;&lt;SN-MENTION class="sn-mention" table="live_profile" sysid="e56c4957db80d85c2be0a851ca9619cb"&gt;@Himabindu&lt;/SN-MENTION&gt;&amp;nbsp;Just to check did you mistakenly mark other answer as correct as it seemed you had marked some other answer correct.&lt;/P&gt;
&lt;P&gt;Note: You can have only 1 answer correct so mark the one that helped &amp;amp; should help future readers.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2020 06:00:24 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-write-a-client-script-to-calculate-impact-and-urgency-so/m-p/652728#M224507</guid>
      <dc:creator>Jaspal Singh</dc:creator>
      <dc:date>2020-11-02T06:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a client script to calculate impact and urgency so that priority should autopopulat</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-write-a-client-script-to-calculate-impact-and-urgency-so/m-p/2547154#M492864</link>
      <description>&lt;P&gt;Sir , what about the impact -1 &amp;amp; urgency 2 for getting priority 2...like that remaining value s as imp-1&amp;amp;urg 2 for pri-3 like that please give answer&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Thu, 27 Apr 2023 13:40:48 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-write-a-client-script-to-calculate-impact-and-urgency-so/m-p/2547154#M492864</guid>
      <dc:creator>Mani63</dc:creator>
      <dc:date>2023-04-27T13:40:48Z</dc:date>
    </item>
  </channel>
</rss>

