TABLE Spell_Macro sym description ob_type type fragment del lock_object tenant { "Add Log Comment - Child Ticket Attached", "Add a Log Comment on the Parent ticket when a Child ticket is attached", "cr" ,"ACT", "object activity_log_record;\\0012string zalg_descr;\\0012\\0012logf(SIGNIFICANT, \"Log Comment on Parent '%s' for Child '%s'\", this.parent.ref_num, this.ref_num);\\0012zalg_descr = \"Child Ticket Attached: \" + this.type.sym + \" \" + this.ref_num;\\0012\\0012send_wait(0, top_object(), \"get_co_group\");\\0012\\0012if (msg_error())\\0012{\\0012 logf(ERROR, \"Error getting group leader: error '%s'\", msg[0]);\\0012 return; \\0012}\\0012\\0012group_leader = msg[0];\\0012send_wait( 0, top_object(), \"call_attr\", \"alg\", \"get_new_dob\", NULL, NULL, group_leader);\\0012\\0012if (msg_error())\\0012{\\0012 logf(ERROR, \"Error creating new alg ob: error '%s'\", msg[0]);\\0012 return; \\0012}\\0012\\0012activity_log_record = msg[0];\\0012 activity_log_record.call_req_id = this.parent.persistent_id;\\0012//this is the system ahd contact record id. \\0012activity_log_record.analyst = \"793ED69B4E87A545BD8E911834D829FC\";\\0012activity_log_record.description = zalg_descr;\\0012activity_log_record.action_desc = zalg_descr;\\0012activity_log_record.type = \"LOG\";\\0012activity_log_record.internal = 0;\\0012send_wait(0, group_leader, \"checkin\");\\0012\\0012", "0" ,"0" ,"" } { "Add Log Comment - Child Ticket Detached", "Add a Log Comment on the Parent ticket when a Child ticket is detached", "cr" ,"ACT", "object activity_log_record;\\0012string zalg_descr;\\0012\\0012logf(SIGNIFICANT, \"Log Comment on Parent '%s' for Child '%s'\", this.zPreviousParent.ref_num, this.ref_num);\\0012zalg_descr = \"Child Ticket Detached: \" + this.type.sym + \" \" + this.ref_num;\\0012\\0012send_wait(0, top_object(), \"get_co_group\");\\0012\\0012if (msg_error())\\0012{\\0012 logf(ERROR, \"Error getting group leader: error '%s'\", msg[0]);\\0012 return; \\0012}\\0012\\0012group_leader = msg[0];\\0012send_wait( 0, top_object(), \"call_attr\", \"alg\", \"get_new_dob\", NULL, NULL, group_leader);\\0012\\0012if (msg_error())\\0012{\\0012 logf(ERROR, \"Error creating new alg ob: error '%s'\", msg[0]);\\0012 return; \\0012}\\0012\\0012activity_log_record = msg[0];\\0012 activity_log_record.call_req_id = this.zPreviousParent.persistent_id;\\0012//this is the system ahd contact record id. \\0012activity_log_record.analyst = \"793ED69B4E87A545BD8E911834D829FC\";\\0012activity_log_record.description = zalg_descr;\\0012activity_log_record.action_desc = zalg_descr;\\0012activity_log_record.type = \"LOG\";\\0012activity_log_record.internal = 0;\\0012send_wait(0, group_leader, \"checkin\");\\0012\\0012", "0" ,"0" ,"" }