Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Automated Email Syntax Issue

Zachary Johnston May 31, 2022

I have an automation rule set up to send an email notification whenever a new comment is made within an Issue. I'm using Office Outlook as my email server. The rule executes just fine. However, when an exclamation point is used within the comment, it shows up in the email with a backslash in front of it as "\!". 


Below is how I have my email format written in Jira:

Issue Key: <a href="https://skdyproductexperience.atlassian.net//browse/{{issue.key}}">({{issue.key}})</a>

Comments:
{{#issue.comments}}
{{author.displayName}} at: {{created}}
"{{body}}"
{{/}}


Below is how the email shows in Outlook:

Issue Key: (Intentionally Blank)

Comments:
Zachary Johnston at: 2022-05-26T21:27:58.4+0000
"first comment made"
Zachary Johnston at: 2022-05-26T21:38:43.3+0000
"second comment here"
Zachary Johnston at: 2022-05-26T21:39:54.4+0000
"3rd comment here\!"
Zachary Johnston at: 2022-05-26T21:46:12.2+0000
"4th comment here"
Zachary Johnston at: 2022-05-26T21:49:27.1+0000
"\!\!\!\!\!"


Can anyone explain why my emails are translating this way when exclamation points are being used? 

1 answer

1 vote
Manon Soubies-Camy _Modus Create_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 1, 2022

Hi @Zachary Johnston,

I believe there is the same bug with ! than with [ as reported in JSWCLOUD-22577 - Automation text value is adding a backslash in front of brackets. The following syntax should work:

Comments:
{{#issue.comments}}
{{author.displayName}} at: {{created}}
"{{body.replace("\!","!")}}"
{{/}}

Hope this helps!

- Manon

Zachary Johnston June 1, 2022

That solved the issue, thank you Manon!

Manon Soubies-Camy _Modus Create_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 2, 2022

Glad it helped! :)

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events