Escalation Service not rendering newline in setComment

GabrielleJ
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 1, 2015

Any idea why my newline code (2 forward slashes \\) below is not being rendered properly in the comments? They are displaying as is.

 

issueInputParameters.setComment('Resource Admin, \\ \\ We have noticed that this issue has not been updated for a period of 7 days. \\ We will assume that this issue is resolved and close the ticket. If you still need help, just reply comment on the ticket and we will reopen it. You can also request a delay (freeze) now if you need more time to respond. \\ If you have managed to resolve this issue locally, please take a moment to share your solution for future reference. \\ \\ Kind Regards, \\ *Support Team*')

1 answer

0 votes
Taha Khanzada
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 3, 2015

Not Sure if you already found the answer to this question, try using "\\\\" for line break.

issueInputParameters.setComment('Resource Admin, \\\\ We have noticed that this issue has not been updated for a period of 7 days.....')

Suggest an answer

Log in or Sign up to answer