<?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 Report on time between change 'Review' state and 'Planned Start' in ITSM forum</title>
    <link>https://www.servicenow.com/community/itsm-forum/report-on-time-between-change-review-state-and-planned-start/m-p/666408#M238187</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P style="min-height: 8pt; height: 8pt; padding: 0px;"&gt; &amp;nbsp;&lt;/P&gt;&lt;P&gt;We are looking to create a report for Change Management which will show the time between a change moving to 'Review' state and the 'Planned Start' date of the change record. &lt;/P&gt;&lt;P style="min-height: 8pt; height: 8pt; padding: 0px;"&gt; &amp;nbsp;&lt;/P&gt;&lt;P&gt;We would like the time to be calculated for every change, so the information can then be exported and we can work out an average. However if there is a way to obtain the time between Review and Planned Start for each record and an average then that would be great.&lt;/P&gt;&lt;P style="min-height: 8pt; height: 8pt; padding: 0px;"&gt; &amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if further information is required.&lt;/P&gt;&lt;P style="min-height: 8pt; height: 8pt; padding: 0px;"&gt; &amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in anticipation,&lt;/P&gt;&lt;P style="min-height: 8pt; height: 8pt; padding: 0px;"&gt; &amp;nbsp;&lt;/P&gt;&lt;P&gt;Emma&lt;/P&gt;</description>
    <pubDate>Wed, 05 Nov 2014 16:36:03 GMT</pubDate>
    <dc:creator>ebaileyybs</dc:creator>
    <dc:date>2014-11-05T16:36:03Z</dc:date>
    <item>
      <title>Report on time between change 'Review' state and 'Planned Start'</title>
      <link>https://www.servicenow.com/community/itsm-forum/report-on-time-between-change-review-state-and-planned-start/m-p/666408#M238187</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P style="min-height: 8pt; height: 8pt; padding: 0px;"&gt; &amp;nbsp;&lt;/P&gt;&lt;P&gt;We are looking to create a report for Change Management which will show the time between a change moving to 'Review' state and the 'Planned Start' date of the change record. &lt;/P&gt;&lt;P style="min-height: 8pt; height: 8pt; padding: 0px;"&gt; &amp;nbsp;&lt;/P&gt;&lt;P&gt;We would like the time to be calculated for every change, so the information can then be exported and we can work out an average. However if there is a way to obtain the time between Review and Planned Start for each record and an average then that would be great.&lt;/P&gt;&lt;P style="min-height: 8pt; height: 8pt; padding: 0px;"&gt; &amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if further information is required.&lt;/P&gt;&lt;P style="min-height: 8pt; height: 8pt; padding: 0px;"&gt; &amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in anticipation,&lt;/P&gt;&lt;P style="min-height: 8pt; height: 8pt; padding: 0px;"&gt; &amp;nbsp;&lt;/P&gt;&lt;P&gt;Emma&lt;/P&gt;</description>
      <pubDate>Wed, 05 Nov 2014 16:36:03 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/report-on-time-between-change-review-state-and-planned-start/m-p/666408#M238187</guid>
      <dc:creator>ebaileyybs</dc:creator>
      <dc:date>2014-11-05T16:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: Report on time between change 'Review' state and 'Planned Start'</title>
      <link>https://www.servicenow.com/community/itsm-forum/report-on-time-between-change-review-state-and-planned-start/m-p/666409#M238188</link>
      <description>&lt;P&gt;Hi Emma,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;I believe you can achieve this via Metrics: &lt;A href="http://wiki.servicenow.com/index.php?title=Metric_Definition_Support" title="http://wiki.servicenow.com/index.php?title=Metric_Definition_Support"&gt;http://wiki.servicenow.com/index.php?title=Metric_Definition_Support&lt;/A&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;From an Analytical, time series reporting perspective this can also be achieved via performance analytic which will provide KPI/Metric dashboarding of such trends, averages and performance.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 05 Nov 2014 16:41:35 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/report-on-time-between-change-review-state-and-planned-start/m-p/666409#M238188</guid>
      <dc:creator>jaybray</dc:creator>
      <dc:date>2014-11-05T16:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: Report on time between change 'Review' state and 'Planned Start'</title>
      <link>https://www.servicenow.com/community/itsm-forum/report-on-time-between-change-review-state-and-planned-start/m-p/666410#M238189</link>
      <description>&lt;P&gt;Thanks Jason, I have looked into this, however, I can only base it on the duration of one field. I would like to calculate the difference between two fields and I cannot see a way to do this - I assume a script is required?&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Nov 2014 09:57:15 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/report-on-time-between-change-review-state-and-planned-start/m-p/666410#M238189</guid>
      <dc:creator>ebaileyybs</dc:creator>
      <dc:date>2014-11-06T09:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: Report on time between change 'Review' state and 'Planned Start'</title>
      <link>https://www.servicenow.com/community/itsm-forum/report-on-time-between-change-review-state-and-planned-start/m-p/666411#M238190</link>
      <description>&lt;P&gt;Hi Emma,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Metrics work exactly the same way as your expectation here. It the best resort .&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Nov 2014 10:04:55 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/report-on-time-between-change-review-state-and-planned-start/m-p/666411#M238190</guid>
      <dc:creator>Anurag Tripathi</dc:creator>
      <dc:date>2014-11-06T10:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: Report on time between change 'Review' state and 'Planned Start'</title>
      <link>https://www.servicenow.com/community/itsm-forum/report-on-time-between-change-review-state-and-planned-start/m-p/666412#M238191</link>
      <description>&lt;P&gt;IF you still don't want to use it, then you can have a simple script written that will serve your purpose. Let me know if you need help with the script.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Nov 2014 10:06:45 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/report-on-time-between-change-review-state-and-planned-start/m-p/666412#M238191</guid>
      <dc:creator>Anurag Tripathi</dc:creator>
      <dc:date>2014-11-06T10:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: Report on time between change 'Review' state and 'Planned Start'</title>
      <link>https://www.servicenow.com/community/itsm-forum/report-on-time-between-change-review-state-and-planned-start/m-p/666413#M238192</link>
      <description>&lt;P&gt;Hi Anurag,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Would a script be required to achieve this type of metric?&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;I have very little knowledge when it comes to scripting so was looking for some advise on how this could be achieved?&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Emma&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Nov 2014 10:07:28 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/report-on-time-between-change-review-state-and-planned-start/m-p/666413#M238192</guid>
      <dc:creator>ebaileyybs</dc:creator>
      <dc:date>2014-11-06T10:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: Report on time between change 'Review' state and 'Planned Start'</title>
      <link>https://www.servicenow.com/community/itsm-forum/report-on-time-between-change-review-state-and-planned-start/m-p/666414#M238193</link>
      <description>&lt;P&gt;That would be great if you could help with the script please?&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Nov 2014 10:08:01 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/report-on-time-between-change-review-state-and-planned-start/m-p/666414#M238193</guid>
      <dc:creator>ebaileyybs</dc:creator>
      <dc:date>2014-11-06T10:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: Report on time between change 'Review' state and 'Planned Start'</title>
      <link>https://www.servicenow.com/community/itsm-forum/report-on-time-between-change-review-state-and-planned-start/m-p/666415#M238194</link>
      <description>&lt;P&gt;just confirming the requirement here. You want to calculate the difference between the planned start date and the actual time when the ticket moved to review.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Write a Business Rule&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;When : Before&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Table: change Request&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Condition: current.state.changesTo('Review') &amp;nbsp; &amp;nbsp; //here you will have to provide the numerical value of the state &lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Script&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;var getUserDateFormat = gs.getDateFormat();&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;var dateFormatHelper = new DateFormatHelper();&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;var currentDate = dateFormatHelper.getDateInUserFormat(gs.now() , getUserDateFormat); &amp;nbsp; &amp;nbsp; //this is the date when ticket moved to review&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;var planned_start_date = dateFormatHelper.getDateInUserFormat(current.start_date , getUserDateFormat); &amp;nbsp; //planned start date in the specific format&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;var daysDuration = gs.dateDiff(planned_start_date ,currentDate);&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;current.&amp;lt;your field where you want to save duration &amp;gt; =daysDuration ;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;/* Duration gets calculated in format - days hours mins seconds(25 10:55:52),if you have to extract the day part from it. &lt;/P&gt;&lt;BR /&gt;&lt;P&gt;dateDifference = daysDuration.split(' ');&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;*/&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;This should work&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Nov 2014 10:24:16 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/report-on-time-between-change-review-state-and-planned-start/m-p/666415#M238194</guid>
      <dc:creator>Anurag Tripathi</dc:creator>
      <dc:date>2014-11-06T10:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: Report on time between change 'Review' state and 'Planned Start'</title>
      <link>https://www.servicenow.com/community/itsm-forum/report-on-time-between-change-review-state-and-planned-start/m-p/666416#M238195</link>
      <description>&lt;P&gt;Thank you, I have created the business rule and added a new field to the change_request table named u_lead_time. The field is a string field but I have also tried with Integer and this doesn't work either.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Unfortunately, the 'lead time' field is not populating with the output of the script. Please could you advise if you see any errors or what could be causing this problem?&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Please see below condition and script:&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Condition: current.state.changesTo('-5')&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Script:&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;var getUserDateFormat = gs.getDateFormat();&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;var dateFormatHelper = new DateFormatHelper();&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;var currentDate = dateFormatHelper.getDateInUserFormat(gs.now() , getUserDateFormat); &amp;nbsp; &amp;nbsp; //this is the date when ticket moved to review&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;var planned_start_date = dateFormatHelper.getDateInUserFormat(current.start_date, getUserDateFormat); &amp;nbsp; //planned start date in the specific format&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;var daysDuration = gs.dateDiff(planned_start_date,currentDate);&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;current.u_lead_time =daysDuration ;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;/* Duration gets calculated in format - days hours mins seconds(25 10:55:52),if you have to extract the day part from it.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;dateDifference = daysDuration.split(' ');&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;*/&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Nov 2014 11:25:49 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/report-on-time-between-change-review-state-and-planned-start/m-p/666416#M238195</guid>
      <dc:creator>ebaileyybs</dc:creator>
      <dc:date>2014-11-06T11:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: Report on time between change 'Review' state and 'Planned Start'</title>
      <link>https://www.servicenow.com/community/itsm-forum/report-on-time-between-change-review-state-and-planned-start/m-p/666417#M238196</link>
      <description>&lt;P&gt;Make the Field type duration (glide_duration)&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;If that dosent work properly then &lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;modify this line of the code &lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-family: arial, sans-serif;"&gt;current.u_lead_time =daysDuration.toString() ;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-family: arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-family: arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Nov 2014 11:58:24 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/report-on-time-between-change-review-state-and-planned-start/m-p/666417#M238196</guid>
      <dc:creator>Anurag Tripathi</dc:creator>
      <dc:date>2014-11-06T11:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: Report on time between change 'Review' state and 'Planned Start'</title>
      <link>https://www.servicenow.com/community/itsm-forum/report-on-time-between-change-review-state-and-planned-start/m-p/666418#M238197</link>
      <description>&lt;P&gt;Thank you for your reply and help so far.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;I have amended the field to a duration type and I have amended the script as per the above update, however, unfortunately this still does not work.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Is there anything else I need to change to make this work?&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Emma &lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Nov 2014 14:42:19 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/report-on-time-between-change-review-state-and-planned-start/m-p/666418#M238197</guid>
      <dc:creator>ebaileyybs</dc:creator>
      <dc:date>2014-11-06T14:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: Report on time between change 'Review' state and 'Planned Start'</title>
      <link>https://www.servicenow.com/community/itsm-forum/report-on-time-between-change-review-state-and-planned-start/m-p/666419#M238198</link>
      <description>&lt;P&gt;Emma, do only one of the above, not both&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;lets keep the &lt;SPAN style="color: #666666; font-family: arial, sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;u_lead_time &lt;/SPAN&gt; as string only.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;and add the below line to code...&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-family: arial, sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;current.u_lead_time =daysDuration.toString() ;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Nov 2014 14:46:51 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/report-on-time-between-change-review-state-and-planned-start/m-p/666419#M238198</guid>
      <dc:creator>Anurag Tripathi</dc:creator>
      <dc:date>2014-11-06T14:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: Report on time between change 'Review' state and 'Planned Start'</title>
      <link>https://www.servicenow.com/community/itsm-forum/report-on-time-between-change-review-state-and-planned-start/m-p/666420#M238199</link>
      <description>&lt;P&gt;Ok, so I have changed 'u_lead_time' back to string and used &lt;SPAN style="color: #666666; font-family: arial, sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;current.u_lead_time =daysDuration.toString() ; - this does not work&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-family: arial, sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-family: arial, sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;I have also tried a duration field on 'u_lead_time' with current.u_lead_time =daysDuration ; - this does not work&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-family: arial, sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-family: arial, sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;Apologies, is there anything else I can try to resolve this?&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-family: arial, sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-family: arial, sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;Kind regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-family: arial, sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;Emma&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Nov 2014 15:00:04 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/report-on-time-between-change-review-state-and-planned-start/m-p/666420#M238199</guid>
      <dc:creator>ebaileyybs</dc:creator>
      <dc:date>2014-11-06T15:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: Report on time between change 'Review' state and 'Planned Start'</title>
      <link>https://www.servicenow.com/community/itsm-forum/report-on-time-between-change-review-state-and-planned-start/m-p/666421#M238200</link>
      <description>&lt;P&gt;Hi Emma,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Lets keep things simple and get this done&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Business rule script&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;var planned_start_date = gs.now()&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;var daysDuration = gs.dateDiff(current.start_date,gs.now());&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;current.u_lead_time =daysDuration;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;/*I have tried this on demo and its works just fine(provided you planned start date has a value, you can add checks).*/&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;And Lead Time field is 'duration'&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;You can see the same if you log on to&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;A class="loading" href="https://demochannel.service-now.com/" title="https://demochannel.service-now.com"&gt;https://demochannel.service-now.com&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Create any change request&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Nov 2014 15:36:44 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/report-on-time-between-change-review-state-and-planned-start/m-p/666421#M238200</guid>
      <dc:creator>Anurag Tripathi</dc:creator>
      <dc:date>2014-11-06T15:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: Report on time between change 'Review' state and 'Planned Start'</title>
      <link>https://www.servicenow.com/community/itsm-forum/report-on-time-between-change-review-state-and-planned-start/m-p/666422#M238201</link>
      <description>&lt;P&gt;Thank you very much! The script has worked &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro_emoticon jive_macro jive_emote" src="https://www.servicenow.com/6.0.3.0/images/emoticons/happy.png"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Nov 2014 15:47:24 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/report-on-time-between-change-review-state-and-planned-start/m-p/666422#M238201</guid>
      <dc:creator>ebaileyybs</dc:creator>
      <dc:date>2014-11-06T15:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: Report on time between change 'Review' state and 'Planned Start'</title>
      <link>https://www.servicenow.com/community/itsm-forum/report-on-time-between-change-review-state-and-planned-start/m-p/666423#M238202</link>
      <description>&lt;P&gt;Yeah...finally. &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://www.servicenow.com/6.0.3.0/images/emoticons/happy.png"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Nov 2014 15:52:00 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/report-on-time-between-change-review-state-and-planned-start/m-p/666423#M238202</guid>
      <dc:creator>Anurag Tripathi</dc:creator>
      <dc:date>2014-11-06T15:52:00Z</dc:date>
    </item>
  </channel>
</rss>

