function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
LuciferLucifer 

Case reporting on time spent by owners

Hi there,

 

I am asked to create a report to see how long an owner owned a case. For eg Case is created by me and owned it for 5 hours, then assigned it to A for 3 hours and finally assigned it to B and he closed it after 3 hours. So I need a report about all these users and their time. Just like case history, I created a case child object called Caseowners but I know it involves apex coding to do this. Can some one help me on this or give me a sample code?

 

Thanks.

ryanjuptonryanjupton

This would involve writing a trigger. Are you familiar with them? Have you written any Apex in the past?

LuciferLucifer

Hi Ryan,

 

I did write few triggers in my experience but some how this looks complicated.