---
title: "Accessing the fields of an issue in a script"
canonical: "https://support.appfire.com/space/JMCF/465371580/Accessing%20the%20fields%20of%20an%20issue%20in%20a%20script"
format: markdown
---
> Macro (aura-html)

This document details how to access the details of *issue* objects, such as the one provided by the `issue` variables, as well as `Issue` objects returned by other methods such as `getParentObject``()`, `getEpic()` or `getLinkedIssues()`. You can access them using the:

- [Getters of the Issue interface](https://appfire.atlassian.net/wiki/spaces/JMCF/pages/465764748) methods that are native to Jira.
- `get("<field_name>" or "``<field_id>"``)` method returns the value of a system or custom field of the Issue object. The return type depends on the field being accessed.
- `getAsString("<field_name>"`` or "``<field_id>"``)` method that returns the String representation of the value of the system or custom field, whenever possible.
- `getRawValue("<field_name>"`` or "``<field_id>") `method that returns an Option object instead of a String when applied on a field of Single select list or Radio buttons type.
- [getAvailableOptions("<field_name>"](https://appfire.atlassian.net/wiki/spaces/JMCF/pages/465502879)[ or "](https://appfire.atlassian.net/wiki/spaces/JMCF/pages/465502879)[<field_id>"](https://appfire.atlassian.net/wiki/spaces/JMCF/pages/465502879)[)](https://appfire.atlassian.net/wiki/spaces/JMCF/pages/465502879) method that returns a collection of available options for the specified field
- `getRemoteLinks(<Application Name>)` <span style="color: #333333">method </span>takes a String representing the target application (e.g. "jira", "confluence" etc)<span style="color: #333333"> and </span>returns a [Collection](http://download.oracle.com/javase/6/docs/api/index.html?java/util/Collection.html)`<`[RemoteIssueLink](https://appfire.atlassian.net/wiki/spaces/JMCF/pages/465601075)`>` objects.<span style="color: #333333"> </span>
- `getAsJsonData("<field_name>" or "``<field_id>"``)` method <span style="color: #172b4d">returns the value of the field as a</span><span style="color: #172b4d"> </span>[JsonData](https://docs.atlassian.com/software/jira/docs/api/7.5.0/com/atlassian/jira/issue/fields/rest/json/JsonData.html)<span style="color: #172b4d"> </span><span style="color: #172b4d">object.</span> The return type is a <span style="color: #333333">JSON-style version of the field, essentially a key-value Map.</span>

where` <field_name`> is the name of the field as displayed in the Field configuration and `<field_id>` is the ID of the field as shown in [Accessing the Jira Standard fields of an issue](https://appfire.atlassian.net/wiki/spaces/JMCF/pages/465240465) document. In the case of a custom field, it has the form `customfield_xxxxx`, where `xxxxx` is the custom field numerical ID, as seen in the URL when viewing or editing the field.

An issue has the following fields. Click on each to know how to access them:

> Macro (children)