Ticket Inherit properties

Hi,

i was trying to create a scip that trys to set the DueDate/Priority to a
ticket each time you change the ticket from queue.

Ex:

Ticket #001
Queue1: Test (priority default:1 / duedate default:1)

Ticket moved to Queue2 (priority default:5 / duedate default:3)

when moved, ticket still with properties from Queue1

Anyone have a scrip like this or someone can help me with this?