Hi Vysakh,
Here are the steps to implement a customization which saves the Resolved By user to a custom zResolved_By column. Can you explain how you would like to see the last comment displayed? Would this be a specific activity type or the comment from resolving the ticket?
1. Add zResolved_By to schema
2. Save and Publish
3. Create a .spl file with the following contents and place in nx_root/site/mods/magic directory on all sdm servers
cr::zSetResolvedBy(...)
{
string method;
method ="cr::zSetResolvedBy";
logf(MILESTONE, "%s started", method);
uuid who;
send_wait(0,top_object(), "call_attr", "cnt", "current_user_id");
who=msg[0];
send_wait(0, top_object(), "call_attr", "api", "update_object_super", who, persistent_id, 0, "zResolved_By", who);
logf(MILESTONE, "%s ended", method);
}
4. Create a .mod file with the following contents and place in nx_root/site/mods/magic directory on all sdm servers
MODIFY cr POST_VALIDATE zSetResolvedBy() 10010 FILTER(status { -> 'RE'} && EVENT("INSERT UPDATE"));
5. Publish the schema change on background/primary then restart services on app/secondary to pickup the change
6. Add the following line to your detail_in form
<PDM_MACRO name=dtlLookupReadonly hdr="Resolved By" attr=zResolved_By>