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