---
title: "getAllAttachments"
canonical: "https://support.appfire.com/space/PSJC/804391193/getAllAttachments"
format: markdown
---
> Macro (aura-html)


Looking for a getAllAttachments() function? You won’t find it because there isn’t any. Instead, all the attachments for an issue can be retrieved using the ‘attachments’ [standard variable](https://appfire.atlassian.net/wiki/spaces/PSJC/pages/434602568). Examples on how to use this variable can be found below.


**Example 1**

```
return attachments;
```

**Example 2**

```
string [] allAttachments = attachments;

for(string a in allAttachments) {
    runnerLog(a);
}
```