I am creating a string variable as the first step in an automation rule.
The "Smart Value" is set to:
##FROM:{{issue.comments.last.author.emailAddress}}\n{{issue.comments.last.body}}
In a later step, I use this variable with the {{var.asJsonString}} property. The "\n" in the variable is not treated as a newline, it is escaped so that the resulting JSON string has a "\\n".
Is there any way to set the \n as a true newline in the variable-setting step? Is there some sort of char() function I can use?
Just a wild guess but what happens if you put everything between quotes ?
"issue.comments.last.author.emailAddress}}\n{{issue.comments.last.body"
Thanks. I didn't try that because .concat() seemed to do the trick.
##FROM:{{issue.comments.last.author.emailAddress.concat("\n")}}{{issue.comments.last.body}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.