Add Comment to new created task

Hi,

It is possible to add text to the comments field of the new task? for example copy comment from taskA to comment of the new created taskB. Or init coments on new taskB from comment of tasA.

Any hints?

Thanks in advance,

Omar Zelaya

It's not clear where and how you want to do that. Do you mean the task description?
You can add a handler to event BeforeSaveTaskInstance. There you get the TTaskInstance object right before it's saved to the database.

Hi,

Wanted to do it on a Script located after TaskA and before TaskB.

Thanks in advance,

Omar Zelaya

The idea is to always use variables. The description can contain variables, i.e., you can put placeholders like [VariableName] that will be replaced by the actual variable content. So all you have to do is set such variable value in advance.