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)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.