We need to display the last comment added to a ticket in a "last comment" field under the description.
We've created the following automation rule:
When: All comments
Then: Edit Issue
- Last Comment field
- On {{updated. convertToTimeZone("America/Chicago"). mediumDateTime}} *{{issue.comments.last.author.displayName}}* said: {{issue.comments.last.body.abbreviate(100)}}
The rule is working properly, but there is an edge case when an @ mention is added in the comment. As you can see in the following example, the account ID is being displayed instead of the name.
Comment:
@Ruslan Shlain please take a look at this
Last Comment field:
On Oct 27, 2023, 5:17:53 PM *Luis Loaiza* said: [~accountid:557058:e7d6daec-be2d-4db9-ac33-d14790035535] please take a look at this
Is there a way to render the user name properly? Or should we update somehow the rule?
Thanks in advance your your help.