In order to have a glimpse of the last comment added to a ticket without opening it, while in a Filter view or Dashboard, I would like to copy only the first 255 characters or first few words of the last comment.
Currently, I copy the last comment added on a ticket to a multi-line field, however this creates big spaces in the filter view if that comment was long.
Any help would be appreciated, thanks!
Hi @Eric Bergeron - I assume you're trying to copy the truncated text via automation? If so, you could do this (Assuming your custom field is called "Last Comment"):
{{comment.body.left(255)}}
Hello @Mark Segall - This has really helped me. Actually, I am not truncking the comment itself, but rather I'm copying the text from the last comment added into another text field, which I add as a column on our dashboard.
This is what I ended up putting:
TRIGGER: Commented is the main action
ACTION: Field X = {{issue.comments.last.body.left(255)}}
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.