you can use API method addComment to achieve what you described, here you can find API on TaskClient to do so.
HTH
Reply to this message by going to Community
Start a new discussion in jBPM at Community