Hello, May I ask how I could get the last internal note of a ticket? I tried $ticket->getLastMessage()->getBody(), but that returned the last message of a thread. Many thanks, Best regardsHai
http://tmib.net/osticket-1802-email-template-variablesscroll down to internal note vars.
If you are doing it "programmatically", as your $ticket->get.. use suggests, then perhaps you are after:$last_note = $ticket->getThreadEntries('N','DESC');Refer: https://github.com/osTicket/osTicket-1.8/blob/develop/include/class.thread.php etc..