# Read Jira custom field values: fields, expand, v2 vs v3

URL: https://goingstellar.ro/reference/jira-fields/reading-field-values/

A work item read returns custom fields under their customfield id. Ask for them with the fields parameter, add names and schema with expand to learn what each id is, and use renderedFields for HTML. A multi-line text field is an Atlassian Document Format object on v3 and a string on v2.

## Endpoints

| Method | Path | What it does |
|---|---|---|
| GET | `/rest/api/3/issue/{issueIdOrKey}` | Returns a work item with the selected fields and expansions. |
| GET | `/rest/api/2/issue/{issueIdOrKey}` | The v2 form, with wiki or plain strings in text fields. |

## Examples

### GET /rest/api/3/issue/{issueIdOrKey}

Reads custom fields by id in one call, cut to the main value types. Text is a string, number is a number, date and datetime are strings, a select list is an object with value and id, and a multiple select a list of them.

```bash
curl -G \
  -u "you@example.com:$ATLASSIAN_API_TOKEN" \
  -H 'Accept: application/json' \
  --data-urlencode 'fields=customfield_10162,customfield_10163,customfield_10164,customfield_10165,customfield_10166,customfield_10167,customfield_10168,customfield_10169,customfield_10170,customfield_10171,customfield_10172,customfield_10173,customfield_10174,customfield_10175,customfield_10176,customfield_10177,customfield_10178,customfield_10179,customfield_10180,customfield_10181' \
  'https://your-domain.atlassian.net/rest/api/3/issue/{issueIdOrKey}'
```

```python
import os
import requests

EMAIL = "you@example.com"
r = requests.get(
    'https://your-domain.atlassian.net/rest/api/3/issue/{issueIdOrKey}',
    auth=(EMAIL, os.environ["ATLASSIAN_API_TOKEN"]),
    headers={'Accept': 'application/json'},
    params={'fields': 'customfield_10162,customfield_10163,customfield_10164,customfield_10165,customfield_10166,customfield_10167,customfield_10168,customfield_10169,customfield_10170,customfield_10171,customfield_10172,customfield_10173,customfield_10174,customfield_10175,customfield_10176,customfield_10177,customfield_10178,customfield_10179,customfield_10180,customfield_10181'},
)
print(r.status_code, r.text)
```

Response: HTTP 200

```
{
 "key": "ZZREF-6",
 "fields": {
  "customfield_10162": "Checkout total",
  "customfield_10171": 3.5,
  "customfield_10172": "https://example.com/spec",
  "customfield_10169": "2026-12-15",
  "customfield_10170": "2026-12-15T12:30:00.000+0200",
  "customfield_10164": {
   "value": "Green",
   "id": "10037"
  },
  "customfield_10177": [
   "beta",
   "gamma"
  ],
  "customfield_10168": {
   "value": "Europe"
  }
 }
}
```

Response headers:

```
X-Ratelimit-Limit: 400
X-Ratelimit-Remaining: 399
```

Sent to Atlassian Cloud on 29 Nov 2026.

### GET /rest/api/3/issue/{issueIdOrKey}

expand=names,schema adds two maps keyed by field id: the display name and the schema with the type key.

```bash
curl -G \
  -u "you@example.com:$ATLASSIAN_API_TOKEN" \
  -H 'Accept: application/json' \
  --data-urlencode 'fields=customfield_10162,customfield_10164,customfield_10169' \
  --data-urlencode 'expand=names,schema' \
  'https://your-domain.atlassian.net/rest/api/3/issue/{issueIdOrKey}'
```

```python
import os
import requests

EMAIL = "you@example.com"
r = requests.get(
    'https://your-domain.atlassian.net/rest/api/3/issue/{issueIdOrKey}',
    auth=(EMAIL, os.environ["ATLASSIAN_API_TOKEN"]),
    headers={'Accept': 'application/json'},
    params={'fields': 'customfield_10162,customfield_10164,customfield_10169', 'expand': 'names,schema'},
)
print(r.status_code, r.text)
```

Response: HTTP 200

```
{
 "names": {
  "customfield_10162": "zz-ref text",
  "customfield_10164": "zz-ref select",
  "customfield_10169": "zz-ref date"
 },
 "schema": {
  "customfield_10162": {
   "type": "string",
   "custom": "com.atlassian.jira.plugin.system.customfieldtypes:textfield",
   "customId": 10162
  },
  "customfield_10164": {
   "type": "option",
   "custom": "com.atlassian.jira.plugin.system.customfieldtypes:select",
   "customId": 10164
  },
  "customfield_10169": {
   "type": "date",
   "custom": "com.atlassian.jira.plugin.system.customfieldtypes:datepicker",
   "customId": 10169
  }
 },
 "fields": {
  "customfield_10162": "Checkout total",
  "customfield_10164": {
   "self": "https://your-domain.atlassian.net/rest/api/3/customFieldOption/10037",
   "value": "Green",
   "id": "10037"
  },
  "customfield_10169": "2026-12-15"
 }
}
```

Sent to Atlassian Cloud on 29 Nov 2026.

### GET /rest/api/3/issue/{issueIdOrKey}

expand=renderedFields adds an HTML version: a paragraph becomes <p>, dates become display text. The field itself stays ADF.

```bash
curl -G \
  -u "you@example.com:$ATLASSIAN_API_TOKEN" \
  -H 'Accept: application/json' \
  --data-urlencode 'fields=customfield_10163,customfield_10169,customfield_10170' \
  --data-urlencode 'expand=renderedFields' \
  'https://your-domain.atlassian.net/rest/api/3/issue/{issueIdOrKey}'
```

```python
import os
import requests

EMAIL = "you@example.com"
r = requests.get(
    'https://your-domain.atlassian.net/rest/api/3/issue/{issueIdOrKey}',
    auth=(EMAIL, os.environ["ATLASSIAN_API_TOKEN"]),
    headers={'Accept': 'application/json'},
    params={'fields': 'customfield_10163,customfield_10169,customfield_10170', 'expand': 'renderedFields'},
)
print(r.status_code, r.text)
```

Response: HTTP 200

```
{
 "renderedFields": {
  "customfield_10170": "15/Dec/26 12:30 PM",
  "customfield_10163": "<p>Paragraph written as ADF.</p>",
  "customfield_10169": "15/Dec/26"
 },
 "fields": {
  "customfield_10170": "2026-12-15T12:30:00.000+0200",
  "customfield_10163": {
   "type": "doc",
   "version": 1,
   "content": [
    {
     "type": "paragraph",
     "content": [
      {
       "type": "text",
       "text": "Paragraph written as ADF."
      }
     ]
    }
   ]
  },
  "customfield_10169": "2026-12-15"
 }
}
```

Sent to Atlassian Cloud on 29 Nov 2026.

### GET /rest/api/2/issue/{issueIdOrKey}

The v2 read of the same paragraph field returns a string, not an ADF document.

```bash
curl -G \
  -u "you@example.com:$ATLASSIAN_API_TOKEN" \
  -H 'Accept: application/json' \
  --data-urlencode 'fields=customfield_10163,customfield_10164,customfield_10170' \
  'https://your-domain.atlassian.net/rest/api/2/issue/{issueIdOrKey}'
```

```python
import os
import requests

EMAIL = "you@example.com"
r = requests.get(
    'https://your-domain.atlassian.net/rest/api/2/issue/{issueIdOrKey}',
    auth=(EMAIL, os.environ["ATLASSIAN_API_TOKEN"]),
    headers={'Accept': 'application/json'},
    params={'fields': 'customfield_10163,customfield_10164,customfield_10170'},
)
print(r.status_code, r.text)
```

Response: HTTP 200

```
{
 "fields": {
  "customfield_10170": "2026-12-15T12:30:00.000+0200",
  "customfield_10163": "Paragraph written as ADF.",
  "customfield_10164": {
   "self": "https://your-domain.atlassian.net/rest/api/2/customFieldOption/10037",
   "value": "Green",
   "id": "10037"
  }
 }
}
```

Sent to Atlassian Cloud on 29 Nov 2026.

### GET /rest/api/3/issue/{issueIdOrKey}

Gives the display name in the fields parameter. Jira answers 200 with the work item and no fields at all.

```bash
curl -G \
  -u "you@example.com:$ATLASSIAN_API_TOKEN" \
  -H 'Accept: application/json' \
  --data-urlencode 'fields=zz-ref text' \
  'https://your-domain.atlassian.net/rest/api/3/issue/{issueIdOrKey}'
```

```python
import os
import requests

EMAIL = "you@example.com"
r = requests.get(
    'https://your-domain.atlassian.net/rest/api/3/issue/{issueIdOrKey}',
    auth=(EMAIL, os.environ["ATLASSIAN_API_TOKEN"]),
    headers={'Accept': 'application/json'},
    params={'fields': 'zz-ref text'},
)
print(r.status_code, r.text)
```

Response: HTTP 200

```
{
 "expand": "renderedFields,names,schema,operations,editmeta,changelog,versionedRepresentations",
 "id": "10785",
 "self": "https://your-domain.atlassian.net/rest/api/3/issue/10785",
 "key": "ZZREF-6"
}
```

Sent to Atlassian Cloud on 29 Nov 2026.

## How it behaves

- The fields parameter takes ids. The display name 'zz-ref text' returned the work item with no fields object and no error.
- With *navigable the read returned 95 fields, and 41 of them were null, including custom fields without a value.
- v3 returns the paragraph custom field as {type: 'doc', version: 1, content: [...]}. v2 returns "Paragraph written as ADF." as a plain string.
- Dates are 'YYYY-MM-DD'; date-time values are ISO 8601 with milliseconds and the offset of the site, for example 2026-12-15T12:30:00.000+0200.

## Pitfalls

- Custom field ids are assigned by the site (customfield_10164 in these runs), so map names to ids once with expand=names or field search and store the ids.
- renderedFields holds display text such as 15/Dec/26 12:30 PM, so read the field value itself when the data is needed.
- Option and user fields are objects, so compare id or accountId, not the whole object, and keep the self links out of any stored copy.
- versionedRepresentations in expand makes the fields parameter be ignored, per the spec.

## Questions and answers

### How do I get the name of a customfield id?

Add expand=names to the work item read, or call GET /rest/api/3/field/search with the id.

### Why does the paragraph field differ between v2 and v3?

v3 returns Atlassian Document Format for multi-line text, v2 returns a string, as the runs show.

## Related

- [Field ids, keys and names](https://goingstellar.ro/reference/jira-fields/field-ids-and-names/)
- [Find fields with field/search](https://goingstellar.ro/reference/jira-fields/search-fields/)
- [Which fields can be set: editmeta and createmeta](https://goingstellar.ro/reference/jira-fields/editmeta-createmeta-fields/)
- [Paragraph (textarea)](https://goingstellar.ro/reference/jira-fields/paragraph-field/)
- [Date time picker](https://goingstellar.ro/reference/jira-fields/date-time-field/)
- [Select list (single choice)](https://goingstellar.ro/reference/jira-fields/select-list-field/)

## Sources

- [Issues (Jira REST API v3)](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/)

