- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2014 08:36 AM
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
Solved! Go to Solution.
- Labels:
-
Problem Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2014 07:36 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2014 07:52 AM
Yeah...finally.