<?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: Do the IncidentState constants in our instance have an incorrect value? in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/do-the-incidentstate-constants-in-our-instance-have-an-incorrect/m-p/2249092#M900196</link>
    <description>&lt;P&gt;As i am able to see in my instance,&amp;nbsp;IncidentStateSNC SI is read only based on protection policy.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and below is the actual code in the SI.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;var IncidentStateSNC = Class.create();&lt;/P&gt;
&lt;P&gt;IncidentStateSNC.NEW = "1";&lt;BR /&gt;IncidentStateSNC.IN_PROGRESS = "2";&lt;BR /&gt;IncidentStateSNC.ACTIVE = IncidentStateSNC.IN_PROGRESS;&lt;BR /&gt;IncidentStateSNC.ON_HOLD = "3";&lt;BR /&gt;IncidentStateSNC.AWAITING_PROBLEM = IncidentStateSNC.ON_HOLD;&lt;BR /&gt;IncidentStateSNC.AWAITING_USER_INFO = IncidentStateSNC.ON_HOLD;&lt;BR /&gt;IncidentStateSNC.AWAITING_EVIDENCE = IncidentStateSNC.ON_HOLD;&lt;BR /&gt;IncidentStateSNC.RESOLVED = "6";&lt;BR /&gt;IncidentStateSNC.CLOSED = "7";&lt;BR /&gt;IncidentStateSNC.CANCELED = "8";&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;IncidentStateSNC.prototype = {&lt;BR /&gt; initialize: function() {&lt;BR /&gt; },&lt;/P&gt;
&lt;P&gt;type: 'IncidentStateSNC'&lt;BR /&gt;};&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if you can update the SI then it is good. else update the BR condition accordingly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Ali&lt;/P&gt;</description>
    <pubDate>Sat, 29 Sep 2018 00:29:26 GMT</pubDate>
    <dc:creator>Ahmmed Ali</dc:creator>
    <dc:date>2018-09-29T00:29:26Z</dc:date>
    <item>
      <title>Do the IncidentState constants in our instance have an incorrect value?</title>
      <link>https://www.servicenow.com/community/developer-forum/do-the-incidentstate-constants-in-our-instance-have-an-incorrect/m-p/2249091#M900195</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;P&gt;We recently observed that Incidents set to the Canceled status were remaining Active.&amp;nbsp; While investigating&amp;nbsp;I reviewed the Incident&amp;nbsp;&lt;STRONG&gt;mark_closed &lt;/STRONG&gt;business rule&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;and noticed its condition was set to&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;current.incident_state == IncidentState.CLOSED || current.incident_state IncidentState.CANCELED.&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;Curious, I opened the IncidentState Script Include and found the following:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;var IncidentState = Class.create();&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;IncidentState.NEW&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; = IncidentStateSNC.NEW;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;IncidentState.IN_PROGRESS&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; = IncidentStateSNC.IN_PROGRESS;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;IncidentState.ACTIVE&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= IncidentStateSNC.ACTIVE;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;IncidentState.ON_HOLD&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; = IncidentStateSNC.ON_HOLD;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;IncidentState.AWAITING_PROBLEM&amp;nbsp; &amp;nbsp;= IncidentStateSNC.AWAITING_PROBLEM;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;IncidentState.AWAITING_USER_INFO = IncidentStateSNC.AWAITING_USER_INFO;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;IncidentState.AWAITING_EVIDENCE&amp;nbsp; = IncidentStateSNC.AWAITING_EVIDENCE;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;IncidentState.RESOLVED&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= IncidentStateSNC.RESOLVED;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;IncidentState.CLOSED&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= IncidentStateSNC.CLOSED;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;IncidentState.CANCELED&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= IncidentStateSNC.CANCELED;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;which drove me to the IncidentStateSNC Script include where I found the following:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;var IncidentStateSNC = Class.create();&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;IncidentStateSNC.NEW&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; = "1";&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;IncidentStateSNC.ACTIVE&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= "2";&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;IncidentStateSNC.IN_PROGRESS&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; = "2";&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;IncidentStateSNC.ON_HOLD&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; = "3";&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;IncidentStateSNC.AWAITING_PROBLEM&amp;nbsp; &amp;nbsp;= "3";&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;IncidentStateSNC.AWAITING_USER_INFO = "4";&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;IncidentStateSNC.AWAITING_EVIDENCE&amp;nbsp; = "5";&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;IncidentStateSNC.RESOLVED&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= "6";&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;IncidentStateSNC.CLOSED&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= "7";&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;IncidentStateSNC.CANCELED&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= "7";&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it correct that the CLOSED and CANCELED states have the same value?&amp;nbsp; I&amp;nbsp;think the following should be true:&lt;/P&gt;
&lt;P&gt;IncidentStateSNC.CANCELED&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= "8";&lt;/P&gt;
&lt;P&gt;Should I correct the constant value for&amp;nbsp;&lt;STRONG&gt;IncidentStateSNC.CANCELED?&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Sep 2018 22:04:18 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/do-the-incidentstate-constants-in-our-instance-have-an-incorrect/m-p/2249091#M900195</guid>
      <dc:creator>aspeed</dc:creator>
      <dc:date>2018-09-28T22:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: Do the IncidentState constants in our instance have an incorrect value?</title>
      <link>https://www.servicenow.com/community/developer-forum/do-the-incidentstate-constants-in-our-instance-have-an-incorrect/m-p/2249092#M900196</link>
      <description>&lt;P&gt;As i am able to see in my instance,&amp;nbsp;IncidentStateSNC SI is read only based on protection policy.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and below is the actual code in the SI.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;var IncidentStateSNC = Class.create();&lt;/P&gt;
&lt;P&gt;IncidentStateSNC.NEW = "1";&lt;BR /&gt;IncidentStateSNC.IN_PROGRESS = "2";&lt;BR /&gt;IncidentStateSNC.ACTIVE = IncidentStateSNC.IN_PROGRESS;&lt;BR /&gt;IncidentStateSNC.ON_HOLD = "3";&lt;BR /&gt;IncidentStateSNC.AWAITING_PROBLEM = IncidentStateSNC.ON_HOLD;&lt;BR /&gt;IncidentStateSNC.AWAITING_USER_INFO = IncidentStateSNC.ON_HOLD;&lt;BR /&gt;IncidentStateSNC.AWAITING_EVIDENCE = IncidentStateSNC.ON_HOLD;&lt;BR /&gt;IncidentStateSNC.RESOLVED = "6";&lt;BR /&gt;IncidentStateSNC.CLOSED = "7";&lt;BR /&gt;IncidentStateSNC.CANCELED = "8";&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;IncidentStateSNC.prototype = {&lt;BR /&gt; initialize: function() {&lt;BR /&gt; },&lt;/P&gt;
&lt;P&gt;type: 'IncidentStateSNC'&lt;BR /&gt;};&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if you can update the SI then it is good. else update the BR condition accordingly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Ali&lt;/P&gt;</description>
      <pubDate>Sat, 29 Sep 2018 00:29:26 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/do-the-incidentstate-constants-in-our-instance-have-an-incorrect/m-p/2249092#M900196</guid>
      <dc:creator>Ahmmed Ali</dc:creator>
      <dc:date>2018-09-29T00:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: Do the IncidentState constants in our instance have an incorrect value?</title>
      <link>https://www.servicenow.com/community/developer-forum/do-the-incidentstate-constants-in-our-instance-have-an-incorrect/m-p/2249093#M900197</link>
      <description>Thank you Ali, I saw the same read-only protection level message on the Script Include record. I wonder why our instance has a different value for CANCELED. We’re on Kingston Patch 6, what version is your instance?</description>
      <pubDate>Sat, 29 Sep 2018 02:17:06 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/do-the-incidentstate-constants-in-our-instance-have-an-incorrect/m-p/2249093#M900197</guid>
      <dc:creator>aspeed</dc:creator>
      <dc:date>2018-09-29T02:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: Do the IncidentState constants in our instance have an incorrect value?</title>
      <link>https://www.servicenow.com/community/developer-forum/do-the-incidentstate-constants-in-our-instance-have-an-incorrect/m-p/2249094#M900198</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;my instance is also on Kingston patch 6.&lt;/P&gt;
&lt;P&gt;Please check if version history is available for the script include to check when it changed.&lt;/P&gt;
&lt;P&gt;also connect with HI Support to update the values in script include.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Ali&lt;/P&gt;</description>
      <pubDate>Sat, 29 Sep 2018 08:13:15 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/do-the-incidentstate-constants-in-our-instance-have-an-incorrect/m-p/2249094#M900198</guid>
      <dc:creator>Ahmmed Ali</dc:creator>
      <dc:date>2018-09-29T08:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: Do the IncidentState constants in our instance have an incorrect value?</title>
      <link>https://www.servicenow.com/community/developer-forum/do-the-incidentstate-constants-in-our-instance-have-an-incorrect/m-p/2249095#M900199</link>
      <description>The IncidentStateSNC Script Include has no Update Versions which is odd. I will contact HI support to see if an update is available.</description>
      <pubDate>Sat, 29 Sep 2018 12:41:30 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/do-the-incidentstate-constants-in-our-instance-have-an-incorrect/m-p/2249095#M900199</guid>
      <dc:creator>aspeed</dc:creator>
      <dc:date>2018-09-29T12:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: Do the IncidentState constants in our instance have an incorrect value?</title>
      <link>https://www.servicenow.com/community/developer-forum/do-the-incidentstate-constants-in-our-instance-have-an-incorrect/m-p/2249096#M900200</link>
      <description>&lt;P&gt;Please let me also know the update from HI support. Thank you.&lt;/P&gt;</description>
      <pubDate>Sat, 29 Sep 2018 16:47:19 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/do-the-incidentstate-constants-in-our-instance-have-an-incorrect/m-p/2249096#M900200</guid>
      <dc:creator>Ahmmed Ali</dc:creator>
      <dc:date>2018-09-29T16:47:19Z</dc:date>
    </item>
  </channel>
</rss>

