Report on time between change 'Review' state and 'Planned Start'

ebaileyybs
Tera Expert

Hi,

 

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.

 

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.

 

Please let me know if further information is required.

 

Thanks in anticipation,

 

Emma

1 ACCEPTED SOLUTION

Hi Emma,



Lets keep things simple and get this done



Business rule script



var planned_start_date = gs.now()


var daysDuration = gs.dateDiff(current.start_date,gs.now());


current.u_lead_time =daysDuration;




/*I have tried this on demo and its works just fine(provided you planned start date has a value, you can add checks).*/




And Lead Time field is 'duration'








You can see the same if you log on to


https://demochannel.service-now.com




Create any change request


-Anurag

View solution in original post

15 REPLIES 15

Yeah...finally.


-Anurag