How to get lead time and cycle time in VTB?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2020 03:14 AM
Hello all,
Is customization possible for this, I want to see lead time(incident opened to closed) and cycle time (how long the incident has been on each state). in the VTB. Every state time should be calculated and shown on the VTB
If yes, please help me with the process along with screenshots.
Thanks,
K
- Labels:
-
Performance Analytics
-
Reporting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2020 04:02 AM
After the priority changes it will update the order of the Card on the VTB accordingly. Basicly creating 5 options it can be placed:
Starting at the top with critical and moving down to priority planning.
Can you try the simpler version:
(function executeRule(current, previous /*null when async*/ ) {
var orderCard = '1000'; //Default order to 1000 so it is at the bottom
//Set order based on Priority of the incident (this is to allow mapping)
orderCard = current.priority;
//We get the card and update the order
var grCard = new GlideRecord('vtb_card');
if (grCard.get('task', current.sys_id)) {
grCard.order = orderCard;
grCard.update();
}
})(current, previous);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2020 04:12 AM
I made a mistake. I had State.. but ofcourse need to be Priority. Can you try it now (I have updated both scripts).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2020 04:25 AM
It will only update on changes of priority. If you want to be complete, we can create a business rule on Insert of the Card that sets the priority based on the Incident. Let me know if you want that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2020 11:37 PM
If not, let me know how we can help 🙂
Kind regards,
Willem