Scripted Metric

Deepansh Jain
Kilo Contributor

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 

7 REPLIES 7

Sayali Raghojiw
Giga Expert

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.

T_Prashaanth
Mega Guru
Hi Deepansh , You can try something like this. Mark if this is helpful

Hello,

Thanks for your response- Can you please tell me where & how Can I apply my conditions?

 

Regards,

Deepansh

Slawek_Radziewi
Kilo Sage

For such thing we rather use SLA definitions.