Check the time a case is opened by an user
I need to track how long a case is open on a user's screen in Pega
For example, if I am working case S-231112-4 and I open the case once for 10 minutes and then open the same case again for 5 minutes the manager wants to be able to see each of these occurences on a report
|Case ID||Opened By||Time|
|S-231112-4||User XYZ||10 minutes|
|S-231112-4||User XYZ||5 minutes|
To do that I think I need to save the time every time the case is opened or get it from somewhere, also I need to check if the user close the case with the close option or with the X button or with the submit (confirm) button.
Is this possible?