Symptoms
How to add worklist item link to an escalation email.
Diagnoses
N/A
Resolution
Usually there are two levels of Escalations Activity Level and Event Level. You will need to use the "Event Level" escalation to gain access to the ActInstDestID field. The serial number (SN) associated with a task item is usually built from 'ProcInstID_ActInstDestID'.
Please see some information below regarding event level escalation:
http://help.k2.com/onlinehelp/K2blackpearl/UserGuide/current/webframe.html_B2.2_Reference_-_Escalation_Rule.html_tracksearch=escalation
http://old.k2underground.com/blogs/johnny/archive/2012/01/19/k2-4-5-tip-of-the-day-getting-the-workitem-urls-to-work-with-escalations-activity-escalations-vs-event-escalations.aspx
Usually, only the SerialNumber is needed to action a task but the loading of any data on that Smartforms will usually depend on the "_State" parameter and other parameters if they are used during form/view initialize.
To perhaps pretty print the URL, the Function Browser > Text > Hyperlink function can be used. The "URL" field of this function will expect a String and as such String concatenation can be used:
"https://k2.denallix.com/Runtime/Runtime/Form/SWView?_State=Workflow+Task&SerialNo="&{ProcessIDField}&"_"&{ActivityInstanceDestIdField}