Scripted Metric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2020 11:38 PM
Hello ,
I need to prepare a scripted metric for SC_task which says
1. The timer should work when the state is new or work in progress & if the state is updated to pending manually
2. The timer should not start when the state = 'pending" updated by system itself
3 for all the other states , the timer should stop (state = cancelled , closed complete ) basically I want a metric that calculates workable time of the ticket .
Can anyone help me with the script. please
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2020 11:46 PM
Hi Deepansh ,
You can check the following link it will help you:
https://docs.servicenow.com/bundle/orlando-it-business-management/page/product/it-finance/task/t_CreateScriptedAllocationMetrics.html
https://community.servicenow.com/community?id=community_question&sys_id=c05c4f65db9cdbc01dcaf3231f9619a6
Mark it Helpful/Correct.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2020 12:04 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2020 09:43 AM
Hello,
Thanks for your response- Can you please tell me where & how Can I apply my conditions?
Regards,
Deepansh

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2020 02:39 AM
For such thing we rather use SLA definitions.