I send the last comment via an automation to non jira users, this works fine, but if an attachment is added to the comment, a not useable link to the attachment is added to the email body. Is it possible to send only the comment (text) without the link to the attachment?
Hi @Evert Morren Atlas Admin ,
Yes, this is possible.
In your email action, use the comment body smart value (for example {{comment.body}}) instead of rendering the full comment object.
If links still appear, strip markdown links before sending:
{{comment.body.replaceAll("\\[[^\\]]+\\]\\([^\\)]+\\)","")}}.
That keeps text while removing attachment link formatting
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For a question like this, context is important for the community to help. Please post the following:
Until we see those...
If you use a Log action to write a comment with attachments to the audit log, you can see the format used for the attachment markup / linking. With that information, please use text functions to remove the markup.
Please note well: the attachment could be noted in the middle of a sentence of the comment, and thus removing it may reduce readability of the text. Thus, consider what you want to replace the attachment markup with so the sentences still make sense to the reader.
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
can you try the solution provided in this thread
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It doesn't work, I don't see the comment at all.
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.