Custom module GetDateEvent
This module receive the date and time of the queue change and inserts it into a dynamic field defined in the generic agent parameters. That is, if there is any change in the ticket queue, the dynamic field value will receive the date and time of the change.
To do this, go to the Administrative menu and go to the option "Generic Agent".
Give the agent a name and make the settings as desired to trigger the event.
Run
Custom module:
Module => Kernel::System::GenericAgent::GetDateEvent::GetDateEvent
Fieldname => Dynamic field name that receives the ticket queue change date and time.
Obs:
Dynamic field must be Date/Time.