I have an automation rule which sends deployment emails, for any hotfixes we need to send approval doc also.
I need a way to figure out so that it only send the attachment which was last added or the best would be send the attachment with "hotfix" prefix.
This sends all the attachments
{{#issue.attachment}}<li><a href="{{content}}">{{filename}}</a></li>{{/issue.attachment}}
{{#issue.attachment.last}}<li><a href="{{content}}">{{filename}}</a></li>{{/issue.attachment.last}}-- this one is sending attachment which is sorted last
Help please