Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Send last comment via automation without attachment

Evert Morren Atlas Admin
Contributor
March 9, 2026

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?

3 answers

3 votes
Ajay _view26_
Community Champion
March 9, 2026

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

Evert Morren Atlas Admin
Contributor
March 10, 2026

I still see the title of the attachment?

0 votes
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
March 10, 2026

Hi @Evert Morren Atlas Admin 

For a question like this, context is important for the community to help.  Please post the following:

  • an image of your complete automation rule in a single image for continuity
  • images of any relevant actions / conditions / branches
  • an image of the audit log details showing the rule execution
  • explain what is not working as expected and why you believe that to be the case 

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

0 votes
Mohamed Benziane
Community Champion
March 9, 2026
Evert Morren Atlas Admin
Contributor
March 10, 2026

It doesn't work, I don't see the comment at all.

Suggest an answer

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

Atlassian Community Events