On this page
Use case
Configuration
Target issue*
Choose Current issue
Comment text*
Use the following expression with the expression editor set to Jira expression:
"Attachments added: " + issue.attachments.filter(attachment => attachment.created > new Date().minusMinutes(2)).map(attachment => "\n[" + attachment.filename+ "|https://jwtcum.atlassian.net/secure/attachment/"+attachment.id+"/"+attachment.filename+"]").reduce((myString, current) => myString + current, "")
Comment author*
Select Current user.
Comment visibility*
Choose Unrestricted (all users).
Screenshots
Screencast
Related use cases
If you still have questions, feel free to refer to our support team.