---
title: "Scripted Field Snippets"
canonical: "https://support.appfire.com/space/JMCFC/1741815975/Scripted%20Field%20Snippets"
format: markdown
---
> Macro (aura-html)

The following snippets are available: 

| **Snippet Name** | **Description** | **Related APIs** |
| --- | --- | --- |
| **Get field value** | Get the value of a field (“Description” by default). Update the ID of the field to customize; see [Determining custom field IDs](https://appfire.atlassian.net/wiki/spaces/MCFCS/pages/1696235728) below for details on how to find field IDs. | [getField](https://appfire.atlassian.net/wiki/spaces/JMCFC/pages/1325137936) |
| **Get property value** | Get the value of a property. Update the name of the property to customize. | [getProperty](https://appfire.atlassian.net/wiki/spaces/JMCFC/pages/1326120998) |
| **Get a group** | Get the ID of a group using its name. | [getGroup](https://appfire.atlassian.net/wiki/spaces/JMCFC/pages/1741226042) |
| **Get the members of a group** | Get a collection of User objects. | [getGroupUsers](https://appfire.atlassian.net/wiki/spaces/JMCFC/pages/1740963918) |
| **Get a project** | Get a project object using the project ID. Update the ID to customize. | [getProject](https://appfire.atlassian.net/wiki/spaces/JMCFC/pages/1741815887) |
| **Get projects** | Get an array of project objects using an array of project IDs. Update the IDs to customize. | [getProjects](https://appfire.atlassian.net/wiki/spaces/JMCFC/pages/1741390062) |
| **Get a user** | Get a User object with a User ID. Update the ID to customize; see [Determining User IDs](https://appfire.atlassian.net/wiki/spaces/MCFCS/pages/1696235728) below for details on how to find Jira User IDs. | [getUser](https://appfire.atlassian.net/wiki/spaces/JMCFC/pages/1740898448) |
| **Get statuses** | Get an array of status objects using an array of status ID values. Update the IDs to customize; see [Determining status IDs](https://appfire.atlassian.net/wiki/spaces/MCFCS/pages/1696235728) below for details on how to find status ID values. | [getStatuses](https://appfire.atlassian.net/wiki/spaces/JMCFC/pages/1741488202) |
| **Get all permissions** | Get an array of all permissions as objects. | [getAllPermissions](https://appfire.atlassian.net/wiki/spaces/JMCFC/pages/1742045213) |
| **Get permissions** |  | [getPermissions](https://appfire.atlassian.net/wiki/spaces/JMCFC/pages/1741750369) |
| **Remaining story points in an epic** | This snippet calculates the total Story points for any unfinished child issues for an Epic. | [getChildIssues](https://appfire.atlassian.net/wiki/spaces/JMCFC/pages/1325072483)<br>[getFields](https://appfire.atlassian.net/wiki/spaces/JMCFC/pages/1326317598) |
| **Completed story points in an epic** | This snippet calculates the total Story points for all finished child issues for an Epic. | [getChildIssues](https://appfire.atlassian.net/wiki/spaces/JMCFC/pages/1325072483)<br>[getFields](https://appfire.atlassian.net/wiki/spaces/JMCFC/pages/1326317598) |
| **Time in each status - getFieldHistory() example** | This snippet returns a JSON string of all of the changes for an issue’s Status field. | [getField](https://appfire.atlassian.net/wiki/spaces/JMCFC/pages/1325137936)<br>[getFieldHistory](https://appfire.atlassian.net/wiki/spaces/JMCFC/pages/1562447291) |
| **Updates per user - getIssueHistory() example** | This snippet returns a JSON string of the number of changes each user made to an issue. | [getIssueHistory](https://appfire.atlassian.net/wiki/spaces/JMCFC/pages/1563854403) |
| **Due date countdown (duration in seconds)** | This snippet calculates the number of seconds remaining until the Due Date. | [getField](https://appfire.atlassian.net/wiki/spaces/JMCFC/pages/1325137936) |

## Determining custom field IDs

> Macro (include)

## Determining User IDs

> Macro (include)

## Determining status IDs

> Macro (include)