URGENT :Calculating Duration of an SCTASK & RITM.

Mounika B1
Tera Contributor

I  want to calculate "duration" for task & RITM"
For incident, we can calculate "duration", but I can't calculate it for task.
If the item is Open:
Display the time elapsed from the request submission date to the current date.
If the item is Closed:
Display the time between the opened date and the closed date.

 

11 REPLIES 11

The script has already been shared, you just need to adjust the BR to look at your specific requirements.


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

@Mounika B1 

if you are ok to create 2 custom fields then you can use before update business rule with proper filter conditions

what did you start with and where are you stuck?

If you are referring to OOTB BR logic then I already shared it earlier

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader