# Multiline Text generates comments

**URL:** <https://forum.flowable.org/t/multiline-text-generates-comments/11179>\
**Category:** Flowable Designer\
**Created:** [January 15, 2024, 3:18pm UTC](https://forum.flowable.org/t/multiline-text-generates-comments/11179 "2024-01-15T15:18:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![matheus.silva](https://avatars.discourse-cdn.com/v4/letter/m/97f17d/32.png) [@matheus.silva](https://forum.flowable.org/u/matheus.silva)\
**Post date:** [January 15, 2024, 3:18pm UTC](https://forum.flowable.org/t/multiline-text-generates-comments/11179/1 "2024-01-15T15:18:26Z")

</div>

Is there a way to generate process/task comments using multiline texts or text fields?  
I’ve already tried to use the following script task:

_var instanceId = execution.getProcessInstanceId();_  
_var commentTest = execution.getVariable(“multilineComment”);_  
_var taskId = execution.getVariable(“taskId”);_  
_taskService.addComment(taskId, instanceId, commentTest);_

(PS: My Multiline Text field value is multilineComment)

The code works but it does not generate any comment in task or process.
