Hello ashutosh2015,
I won't pretend that I know how to code, but I'll ask some questions that may help some other people here to help.
QUESTIONS
1) What version?
2) Are you using the Priority Calculation Matrix (Impact, Urgency set Priority) or is Priority set manually?
3) What happens when you use the standard "Escalate" form (no customisations). This form allows you to set the Group and also Impact/Urgency/Priority at the same time also.
4) What do you mean by Transfer and Escalate "activity?" Do you mean specifically the Transfer and Escalate "Activity Notifications?" Or something else?
COMMENTS
Some points of interest that I came across:
* The forms (eg xfer_esc_cr.htmpl for the "Escalate" page called from Call Requests/Incidents) contains code that knows about the data entered.
You may be able to use that to your advantage.
* The forms perform additional items, such as adding a delay, if the Priority Calculation Matrix is involved.
* The default Transfer form locks out a simultaneous Priority change. The Escalate form does not.
* The "Activity Notifications" for Escalate and Transfer allow you to attach Events.
You may be able to use that to your advantage.
Thanks, Kyle_R.
#helpinghands