---
title: "Insert a Table of Attachments in the Email Issue Post-Function"
canonical: "https://support.appfire.com/space/JMWE/461406495/Insert%20a%20Table%20of%20Attachments%20in%20the%20Email%20Issue%20Post-Function"
format: markdown
---
> Macro (aura-html)

### Abstract

This code snippet creates a table with two columns, then access each attachment of the issue and print each in a row of the table. You need two snippets one for the text version and another for the HTML version of the [Email issue](https://innovalog.atlassian.net/wiki/x/aY9NC) post-function.

### Snippet for text version

```
||File name||URL||
<% issue.attachments.each {
  print "|${it.filename}|${it.url}|"
}%>
```

### Snippet for Html version

```
<ul>
||File name||URL||
<% issue.attachments.each {
  print "<li><a href='${it.url}'>${it.filename}</a></li>"
}%>
</ul>
```

### Placeholders

NA

### Related articles

> Macro (contentbylabel)