<?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 incidents created today &amp; state is in new need to change to inprogress and assigned to me(Current user) by uisng fix script in ITSM forum</title>
    <link>https://www.servicenow.com/community/itsm-forum/incidents-created-today-state-is-in-new-need-to-change-to/m-p/446169#M17948</link>
    <description>&lt;P&gt;incidents created today &amp;amp; state is in new need to change to inprogress and assigned to me(Current user) by uisng fix script&lt;/P&gt;</description>
    <pubDate>Tue, 15 Mar 2022 06:46:34 GMT</pubDate>
    <dc:creator>Sushmitha9</dc:creator>
    <dc:date>2022-03-15T06:46:34Z</dc:date>
    <item>
      <title>incidents created today &amp; state is in new need to change to inprogress and assigned to me(Current user) by uisng fix script</title>
      <link>https://www.servicenow.com/community/itsm-forum/incidents-created-today-state-is-in-new-need-to-change-to/m-p/446169#M17948</link>
      <description>&lt;P&gt;incidents created today &amp;amp; state is in new need to change to inprogress and assigned to me(Current user) by uisng fix script&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2022 06:46:34 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/incidents-created-today-state-is-in-new-need-to-change-to/m-p/446169#M17948</guid>
      <dc:creator>Sushmitha9</dc:creator>
      <dc:date>2022-03-15T06:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: incidents created today &amp; state is in new need to change to inprogress and assigned to me(Current user) by uisng fix script</title>
      <link>https://www.servicenow.com/community/itsm-forum/incidents-created-today-state-is-in-new-need-to-change-to/m-p/446170#M17949</link>
      <description>&lt;P&gt;var gr = new GlideRecord('incident');&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;gr.setWorkflow(false);&lt;BR /&gt; //gr.autoSysFields(false);&lt;BR /&gt; gr.query();&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; while (gr.next()) {&lt;BR /&gt; gr.state= '2';&lt;BR /&gt; gr.assigned_to = gs.getUserID();&lt;BR /&gt; gr.update();&lt;BR /&gt; &lt;BR /&gt; }&lt;/P&gt;
&lt;P&gt;Mark correct and helpful&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2022 06:59:36 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/incidents-created-today-state-is-in-new-need-to-change-to/m-p/446170#M17949</guid>
      <dc:creator>Saiganeshraja</dc:creator>
      <dc:date>2022-03-15T06:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: incidents created today &amp; state is in new need to change to inprogress and assigned to me(Current user) by uisng fix script</title>
      <link>https://www.servicenow.com/community/itsm-forum/incidents-created-today-state-is-in-new-need-to-change-to/m-p/446171#M17950</link>
      <description>&lt;P&gt;Hi Sushmita,&lt;/P&gt;
&lt;P&gt;You can try code below:&lt;/P&gt;
&lt;P&gt;incidentChange();&lt;/P&gt;
&lt;P&gt;function&amp;nbsp;incidentChange(){&lt;/P&gt;
&lt;P&gt;var gr=new GlideRecord('incident');&lt;/P&gt;
&lt;P&gt;gr.addEncodedQuery('sys_created_onONToday@javascript:gs.beginningOfToday()@javascript:gs.endOfToday()^state=1');&lt;/P&gt;
&lt;P&gt;gr.setWorkflow(false);&lt;/P&gt;
&lt;P&gt;gr.query();&lt;/P&gt;
&lt;P&gt;while(gr.next()){&lt;/P&gt;
&lt;P&gt;gr.state= 2;&lt;BR /&gt;gr.assigned_to = 'your sys_id';&lt;BR /&gt;gr.update();&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2022 07:06:25 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/incidents-created-today-state-is-in-new-need-to-change-to/m-p/446171#M17950</guid>
      <dc:creator>Rahul Dev1</dc:creator>
      <dc:date>2022-03-15T07:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: incidents created today &amp; state is in new need to change to inprogress and assigned to me(Current user) by uisng fix script</title>
      <link>https://www.servicenow.com/community/itsm-forum/incidents-created-today-state-is-in-new-need-to-change-to/m-p/446172#M17951</link>
      <description>&lt;P&gt;hi rahul&lt;/P&gt;
&lt;P&gt;On Change&lt;BR /&gt;- If caller is VIP then&lt;BR /&gt;category should be network&lt;BR /&gt;sub category should be IP address&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;_ if caller is NOT VIP then category and sub category should be empty(that is cat and sub cat should be none)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;how to do this&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2022 06:47:23 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/incidents-created-today-state-is-in-new-need-to-change-to/m-p/446172#M17951</guid>
      <dc:creator>Sushmitha9</dc:creator>
      <dc:date>2022-03-16T06:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: incidents created today &amp; state is in new need to change to inprogress and assigned to me(Current user) by uisng fix script</title>
      <link>https://www.servicenow.com/community/itsm-forum/incidents-created-today-state-is-in-new-need-to-change-to/m-p/446173#M17952</link>
      <description>&lt;P&gt;Hi Sushmita&lt;/P&gt;
&lt;P&gt;You can use the onChange client script on caller field as below:&lt;/P&gt;
&lt;P&gt;function onChange(control, oldValue, newValue, isLoading, isTemplate) {&lt;BR /&gt; if (isLoading || newValue === '') {&lt;BR /&gt; return;&lt;BR /&gt; }&lt;/P&gt;
&lt;P&gt;g_form.getReference('caller_id',validCaller);&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;}&lt;BR /&gt;function validCaller(callVip){&lt;BR /&gt; var call_vip=callVip.vip;&lt;/P&gt;
&lt;P&gt;if(call_vip=='true'){&lt;BR /&gt; &lt;BR /&gt; g_form.setValue('category','network');&lt;BR /&gt; g_form.setValue('subcategory','ip address');&lt;BR /&gt; &lt;BR /&gt; }&lt;BR /&gt; else{&lt;BR /&gt; g_form.setValue('category','');&lt;BR /&gt; g_form.setValue('subcategory','');&lt;BR /&gt; }&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2022 07:37:43 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/incidents-created-today-state-is-in-new-need-to-change-to/m-p/446173#M17952</guid>
      <dc:creator>Rahul Dev1</dc:creator>
      <dc:date>2022-03-16T07:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: incidents created today &amp; state is in new need to change to inprogress and assigned to me(Current user) by uisng fix script</title>
      <link>https://www.servicenow.com/community/itsm-forum/incidents-created-today-state-is-in-new-need-to-change-to/m-p/446174#M17953</link>
      <description>&lt;P&gt;thankyou rahul&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2022 08:42:00 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/incidents-created-today-state-is-in-new-need-to-change-to/m-p/446174#M17953</guid>
      <dc:creator>Sushmitha9</dc:creator>
      <dc:date>2022-03-16T08:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: incidents created today &amp; state is in new need to change to inprogress and assigned to me(Current user) by uisng fix script</title>
      <link>https://www.servicenow.com/community/itsm-forum/incidents-created-today-state-is-in-new-need-to-change-to/m-p/446175#M17954</link>
      <description>&lt;P&gt;Hi Rahul,&lt;/P&gt;
&lt;P&gt;can you explain the belowone script with steps that how to do and how to see the output&lt;/P&gt;
&lt;P&gt;In the normal change in the asset stage we will be selecting the assignment group instead of that assignment group should be service desk what ever we select change in the work flow&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2022 08:43:31 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/incidents-created-today-state-is-in-new-need-to-change-to/m-p/446175#M17954</guid>
      <dc:creator>Sushmitha9</dc:creator>
      <dc:date>2022-03-16T08:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: incidents created today &amp; state is in new need to change to inprogress and assigned to me(Current user) by uisng fix script</title>
      <link>https://www.servicenow.com/community/itsm-forum/incidents-created-today-state-is-in-new-need-to-change-to/m-p/446176#M17955</link>
      <description>&lt;P&gt;Hi Sushmitha&lt;/P&gt;
&lt;P&gt;I didn't understand your requirement completely. Can you please elaborate it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2022 09:18:24 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/incidents-created-today-state-is-in-new-need-to-change-to/m-p/446176#M17955</guid>
      <dc:creator>Rahul Dev1</dc:creator>
      <dc:date>2022-03-16T09:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: incidents created today &amp; state is in new need to change to inprogress and assigned to me(Current user) by uisng fix script</title>
      <link>https://www.servicenow.com/community/itsm-forum/incidents-created-today-state-is-in-new-need-to-change-to/m-p/446177#M17956</link>
      <description>&lt;P&gt;okay no worries i did that&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2022 09:58:26 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/incidents-created-today-state-is-in-new-need-to-change-to/m-p/446177#M17956</guid>
      <dc:creator>Sushmitha9</dc:creator>
      <dc:date>2022-03-16T09:58:26Z</dc:date>
    </item>
  </channel>
</rss>

