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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.