Task Time Worked values Sum Up for RITM and CASE

swapnil15
Tera Contributor

Hi All,

 

The time_in_second field stores values in seconds, it records the time a user has worked on. I want to add all the time a user has worked on CASE and the RITM related to this case. As per the image attached, every time a user updates the RITM or CASE form a new record is created with the time a user worked on it. How can I add all the time a user worked on both RITM and CASE? 

I can add time for one single module like either CASE or RITM but not both. Please help me with the script. 

TIA!

1 REPLY 1

diogovdcandrade
Tera Contributor

Hi

My personal input would be not to do it the way you want to do it.

instead, i'd create whole seperate field and have a business rule specifically for it

 

in any case, if you want to try and change the built-in:

sys_property: com.snc.time_worked.update_task_timer

Business Rule: update_task_timer

 

you could revamp the script and make it add child time worked to parent.

again, I wouldn't advise myself that solution