Going Stellar

Home/Jira fields reference

Jira Cloud fields and work types

Jira field ids, keys and names in the REST API

Every field has an id. System fields use a fixed word such as summary or fixVersions, custom fields use customfield_ followed by a number. GET /rest/api/3/field lists all of them with the JQL names (clauseNames) each one answers to, and GET /rest/api/3/field/search narrows the list by type, id or text. The fields parameter of a work item request wants ids: a display name matches nothing and is dropped without an error.

Endpoints

MethodPathWhat it does
GET/rest/api/3/fieldLists system and custom fields with id, name, schema and clauseNames.
GET/rest/api/3/field/searchPaginated search by type, id or name text. The expand parameter adds key, searcherKey and counts.
GET/rest/api/3/issue/{issueIdOrKey}Returns the fields selected by id. The expand parameter names and schema labels each one.

Examples

GET /rest/api/3/field

Lists every field the caller can see. Each entry carries the id, the display name, a custom flag and the JQL names that refer to it.

curl

curl \
  -u "you@example.com:$ATLASSIAN_API_TOKEN" \
  -H 'Accept: application/json' \
  'https://your-domain.atlassian.net/rest/api/3/field'

Python (requests)

import os
import requests

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

Response: HTTP 200

[
 {
  "id": "statuscategorychangedate",
  "name": "Status category changed",
  "custom": false,
  "clauseNames": [
   "statusCategoryChangedDate"
  ],
  "schema": {
   "type": "datetime",
   "system": "statuscategorychangedate"
  }
 },
 {
  "id": "customfield_10076",
  "name": "Incident manager",
  "custom": true,
  "clauseNames": [
   "Incident manager[User Picker (single user)]",
   "Incident manager",
   "cf[10076]"
  ],
  "schema": {
   "type": "user",
   "custom": "com.atlassian.jira.plugin.system.customfieldtypes:userpicker",
   "customId": 10076
  }
 },
 {
  "id": "fixVersions",
  "name": "Fix versions",
  "custom": false,
  "clauseNames": [
   "fixVersion"
  ],
  "schema": {
   "type": "array",
   "items": "version",
   "system": "fixVersions"
  }
 }
]

Sent to Atlassian Cloud on .

GET /rest/api/3/field/search

Pages through the system fields only. The first five come back with their type display name and schema.

curl

curl -G \
  -u "you@example.com:$ATLASSIAN_API_TOKEN" \
  -H 'Accept: application/json' \
  --data-urlencode 'type=system' \
  --data-urlencode 'maxResults=5' \
  'https://your-domain.atlassian.net/rest/api/3/field/search'

Python (requests)

import os
import requests

EMAIL = "you@example.com"
r = requests.get(
    'https://your-domain.atlassian.net/rest/api/3/field/search',
    auth=(EMAIL, os.environ["ATLASSIAN_API_TOKEN"]),
    headers={'Accept': 'application/json'},
    params={'type': 'system', 'maxResults': '5'},
)
print(r.status_code, r.text)

Response: HTTP 200

{
 "maxResults": 5,
 "total": 44,
 "isLast": false,
 "values": [
  {
   "id": "versions",
   "name": "Affects versions",
   "schema": {
    "type": "array",
    "items": "version",
    "system": "versions"
   }
  },
  {
   "id": "assignee",
   "name": "Assignee",
   "schema": {
    "type": "user",
    "system": "assignee"
   }
  },
  {
   "id": "attachment",
   "name": "Attachment",
   "schema": {
    "type": "array",
    "items": "attachment",
    "system": "attachment"
   }
  }
 ]
}

Sent to Atlassian Cloud on .

GET /rest/api/3/field/search

Looks up one custom field by id and asks for the extra data: the key and the searcher that JQL uses for it.

curl

curl -G \
  -u "you@example.com:$ATLASSIAN_API_TOKEN" \
  -H 'Accept: application/json' \
  --data-urlencode 'id=customfield_10164' \
  --data-urlencode 'expand=key,searcherKey,screensCount,contextsCount,projectsCount' \
  'https://your-domain.atlassian.net/rest/api/3/field/search'

Python (requests)

import os
import requests

EMAIL = "you@example.com"
r = requests.get(
    'https://your-domain.atlassian.net/rest/api/3/field/search',
    auth=(EMAIL, os.environ["ATLASSIAN_API_TOKEN"]),
    headers={'Accept': 'application/json'},
    params={'id': 'customfield_10164', 'expand': 'key,searcherKey,screensCount,contextsCount,projectsCount'},
)
print(r.status_code, r.text)

Response: HTTP 200

{
 "values": [
  {
   "id": "customfield_10164",
   "name": "zz-ref select",
   "schema": {
    "type": "option",
    "custom": "com.atlassian.jira.plugin.system.customfieldtypes:select",
    "customId": 10164
   },
   "typeDisplayName": "Select List (single choice)",
   "key": "customfield_10164",
   "searcherKey": "com.atlassian.jira.plugin.system.customfieldtypes:multiselectsearcher"
  }
 ]
}

Sent to Atlassian Cloud on .

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

Reads three custom fields of a work item and adds expand=names,schema, which maps each id back to its display name and type.

curl

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 (requests)

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 .

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

Passes a display name in the fields parameter instead of an id.

curl

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 (requests)

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 .

POST /rest/api/3/search/jql

Searches with a field name that does not exist.

curl

curl -X POST \
  -u "you@example.com:$ATLASSIAN_API_TOKEN" \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  --data '{
  "jql": "project = ZZREF AND \"zz-ref nosuch\" = x",
  "fields": [
    "summary"
  ],
  "maxResults": 2
}' \
  'https://your-domain.atlassian.net/rest/api/3/search/jql'

Python (requests)

import os
import requests

EMAIL = "you@example.com"
r = requests.post(
    'https://your-domain.atlassian.net/rest/api/3/search/jql',
    auth=(EMAIL, os.environ["ATLASSIAN_API_TOKEN"]),
    headers={'Accept': 'application/json'},
    json={'jql': 'project = ZZREF AND "zz-ref nosuch" = x', 'fields': ['summary'], 'maxResults': 2},
)
print(r.status_code, r.text)

Response: HTTP 200

{
 "issues": [],
 "isLast": true
}

Sent to Atlassian Cloud on .

How it behaves

  • System field ids are fixed words (summary, fixVersions, duedate). A custom field id is customfield_ plus schema.customId, and the same number is what cf[...] uses in JQL (fields-search-id, jql-cf-id).
  • GET /rest/api/3/field gives each field a clauseNames list. One field can answer to several JQL names: duedate to due and duedate, issuetype to issuetype, type and worktype. Custom fields list their name, a name with the type in brackets and cf[n] (fields-all).
  • The unfiltered field list held 110 entries with custom fields included, while type=system reported a total of 44 (fields-all, fields-search-system).
  • A display name in the fields parameter of GET issue returned the work item with no fields object at all, and no error (read-fields-by-name).
  • In JQL the display name, the customfield_ id and cf[n] all matched the same work item. A name that does not exist answered 200 with an empty issues list and no error text (jql-cf-name, jql-cf-customfield-id, jql-cf-id, jql-cf-name-bad).

Pitfalls

  • An empty search result does not prove the filter was right. A misspelled field name in JQL came back as 200 with no work items, the same shape as a real query with no matches.
  • Ids of custom fields are assigned at creation, so look them up by name or type before use instead of copying a number from another environment.
  • There is no GET /rest/api/3/field/{id}: the request answered 405 with a problem+json body saying the method is not supported (field-get-405). Use field/search with id= instead.

Questions and answers

How do I find the id of a custom field?

Call GET /rest/api/3/field/search with type=custom and a query for part of the name, then read id from the matching entry. Add expand=key,searcherKey when the JQL searcher matters.

Can I use the display name in the fields parameter?

No. The fields parameter takes ids, and a name returns the work item without a fields object. Add expand=names to the request when ids need a readable label.

Sources

  1. Issue fields (Jira REST API v3)
  2. Get fields (Jira REST API v3)
  3. Get fields paginated (Jira REST API v3)
  4. Get issue (Jira REST API v3)

Markdown version · All Jira fields pages