How do I retain an agent assigned to a ticket when moving it from one department to another?

How do I retain an agent assigned to a ticket when moving it from one department to another?

I have an agent in two departments.  When I move a ticket from one to another, the agent assigned is unassigned and the ticket is left unassigned.  How do I keep the same agent assigned.?