View all methods

customFields.list

List the discovered custom fields and saved allowlist entries for a Jira Cloud or Jira Data Center connection.

Facts

Method GET https://yourinstance.getdx.net/api/connections/
:connection_id/customFields.list

Arguments

Required arguments

Name Type Description
token Token Data Cloud API key passed in the Authorization: Bearer HTTP header. See Authentication.
connection_id Integer The Jira connection ID. Substitute this value for :connection_id in the URL path. Find it with connections.list.

Optional arguments

Name Type Description
limit Integer Maximum number of fields to return. Defaults to 500. Must be between 1 and 1000.
after_key String Return fields after this field key. Use the previous response’s next_cursor value. Omit it for the first page.

Usage info

This method supports Jira Cloud and Jira Data Center connections. It does not support Jira extractor connections. Find the connection ID with connections.list.

Fields are returned in ascending field-key order. Both allowlisted and excluded fields are included. A field key that is still allowlisted but no longer discovered in Jira is returned with name: null and import_enabled: true, so you can remove it from the allowlist.

The response contains:

Field Type Description
ok Boolean true when the request succeeds.
connection_id Integer The Jira connection ID.
fields Array<Object> The requested page of fields.
has_more Boolean Whether another page of fields is available.
next_cursor String or null The field key to pass as after_key for the next page, or null when there are no more pages.

Each object in fields contains:

Field Type Description
field_key String The Jira field key, such as customfield_10001. Use this value in add, remove, and set requests.
name String or null The field name, or null for a saved allowlist entry no longer discovered in Jira.
import_enabled Boolean Whether the field is explicitly selected in this connection’s custom field allowlist. Dedicated story point and sprint settings are configured separately.

When has_more is true, pass next_cursor as after_key in the next request. Stop when has_more is false. Pagination is not a snapshot across concurrent changes.

Example request

curl "https://yourinstance.getdx.net/api/connections/123/customFields.list?limit=2" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer xxxx-xxxxxxxxx-xxxx"

Success response

{
  "ok": true,
  "connection_id": 123,
  "fields": [
    {
      "field_key": "customfield_10001",
      "name": "Customer impact",
      "import_enabled": true
    },
    {
      "field_key": "customfield_10002",
      "name": "Team",
      "import_enabled": false
    }
  ],
  "has_more": true,
  "next_cursor": "customfield_10002"
}

Fetch the next page with:

curl "https://yourinstance.getdx.net/api/connections/123/customFields.list?limit=2&after_key=customfield_10002" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer xxxx-xxxxxxxxx-xxxx"

Errors

Error Description
not_authed The request did not include a valid Data Cloud API key.
connection_not_found No connection exists for the given connection_id. Returns HTTP 404.
invalid_custom_fields The connection is not a supported Jira Cloud or Jira Data Center connection. Returns HTTP 422.
invalid_limit limit is not an integer between 1 and 1000. Returns HTTP 422.
invalid_cursor after_key was provided as a blank value or a value other than a string. Returns HTTP 422.