Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

Adding new lines into a task description

JamesBooth1
Giga Contributor

Hi

 

I am trying to add two blank lines between text and field values on a task description.

 

I am using task.description in the script part of the create task workflow item to define the description for the task to be created.

 

For example:

 

task.description = " Change plan " + current.change_plan

 

and I need two empty lines between Change plan and current.change_plan

 

I have tried both "\n" and "<br/>" to create the additional lines but they are being displayed in the description instead of the extra lines.

 

Where am I going wrong?

 

Any help would be most appreciated.

 

Thanks

1 ACCEPTED SOLUTION

Harish Murikina
Tera Guru

tried this way?


task.description = " Change plan \n" + current.change_plan


View solution in original post

5 REPLIES 5

chaslage
Kilo Guru

How about:



task.description = " Change plan " + String.fromCharCode(13) + current.change_plan;



Not sure it'll work but it's worth a try.


Harish Murikina
Tera Guru

tried this way?


task.description = " Change plan \n" + current.change_plan


that is a string field .. not sure HTML is gonna work there ...


Thanks Harish & Chris



I will try both of these options.