I have created a variable
comment = *{{issue.comments.last.author.displayName}} commented*: {{issue.comments.last.body}}
then I create a comment using a webrequest action , the custom data for the request is:
{ "issues":["{{webhookResponse.body.object.title}}"], "data": {"comment":"{{comment.jsonEncode}}"} }
The comment is created OK, but I need to add couple of newlines between:
*{{issue.comments.last.author.displayName}} commented*: and
{{issue.comments.last.body}}
I've tried adding in between both:
\n\n (prints \n\n in the comment)
\\n\\n (prints \\n + newline + n)
Thanks for your suggestions,
In case someone runs into the same issue, use: \\ (for a single newline)
Hi @Adolfo Casari I use "\r\n" in my Data Center environments to get a newline in a comment inserted via JSON.
That was - so far - the only thing that worked for me.
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.