---
title: "getAllCustomFields"
canonical: "https://support.appfire.com/space/PSJ/15483603/getAllCustomFields"
format: markdown
---
> Macro (aura-html)


|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | getAllCustomFields() | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Returns an array of JCustomField type structs for all custom fields in Jira.

Returns an array of JCustomField type structs for all custom fields in Jira.

## Return Type

**[JCustomField []](https://appfire.atlassian.net/wiki/spaces/PSJ/pages/15487117)**

Returns an array of custom fields.

## Example

```
for(JCustomField cf in getAllCustomFields()) {
    runnerLog("ID: " + cf.id);
    runnerLog("Name: " + cf.name);
    runnerLog("Description: " + cf.description);
    runnerLog("Type: " + cf.type);}
```

## See also

> Macro (contentbylabel)