//Name 	 Text_of_all_messages_of_current_task
//Description 	Collects the text from all messages for the current task
//Type 	Task / Custom Field Value

String s = "";
for(Iterator it = task.getMessages().iterator(); it.hasNext();) {
    String desc = it.next().getDescription();
    if (desc != null) {
      s += desc + " | ";
    }
}
return s;