TrackStudio Enterprise 3.5
Add Message/AFTER:

The following trigger copies a task to the Knowledge Base (task #2 in this example) when user adds a message.

String copyTo = "2";
AdapterManager.getInstance().getSecuredTaskAdapterManager().pasteTasks(message.getSecure(),
   AdapterManager.getInstance().getSecuredTaskAdapterManager().findTaskIdByQuickGo(
     message.getSecure(), copyTo), new String[]{message.getTaskId()},"SINGLE_COPY");
return message;

The following trigger moves a task to the Knowledge Base (task #2 in this example) when user adds a message.

String moveTo= "2";
AdapterManager.getInstance().getSecuredTaskAdapterManager().pasteTasks(message.getSecure(),
     AdapterManager.getInstance().getSecuredTaskAdapterManager().findTaskIdByQuickGo(
       message.getSecure(), moveTo), new String[]{message.getTaskId()},"CUT");
return message;