Ticket comment with custom function

Ticket comment with custom function

Hi,

how can I add a formatted comment to a ticket by using a custom function?
In the arguments of the custom function I can't find anything related to the comments in the ticket.

Any suggestions?

Thanks and BR