I would like to have the ability for engineers to record their time against a ticket by starting and stopping a timer within the ticket itself.
My coding ability within PHP is not the best and I'm struggling to string together where I would need to make changes to accommodate this. At present I have reviewed the class.ticket.php file and the ticket.php file to see where I could add my code.
What I'm trying to create is a play/pause button on the ticket that an engineer can use to record time.
When they hit play a "Start" timestamp is generated and added to a new DB table called ost_timer.
When they hit pause an "End" timestamp is generated and added to the table.
It also record the Ticket ID and Staff ID.
Then I have a script that gets the difference between the "Start" and "End" to identify how long the ticket was worked on.
Because it is a separate table it should be able to store multiple entries per ticket, against different engineers if needed.
If anyone has already done things to make changes to a ticket I would appreciate some input on where to begin adding code please, thank you.
Add Play/Pause timer button to tickets