{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/atlassian/json-schema/atlassian-connect-custom-field-values-schema.json",
  "title": "ConnectCustomFieldValues",
  "description": "Details of updates for a custom field.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/atlassian-app-migration-api-openapi.yml#/components/schemas/ConnectCustomFieldValues",
  "additionalProperties": false,
  "properties": {
    "updateValueList": {
      "description": "The list of custom field update details.",
      "items": {
        "$ref": "#/$defs/ConnectCustomFieldValue"
      },
      "type": "array"
    }
  },
  "type": "object",
  "writeOnly": true,
  "$defs": {
    "ConnectCustomFieldValue": {
      "description": "A list of custom field details.",
      "properties": {
        "_type": {
          "description": "The type of custom field.",
          "enum": [
            "StringIssueField",
            "NumberIssueField",
            "RichTextIssueField",
            "SingleSelectIssueField",
            "MultiSelectIssueField",
            "TextIssueField"
          ],
          "type": "string",
          "writeOnly": true
        },
        "fieldID": {
          "description": "The custom field ID.",
          "type": "integer",
          "writeOnly": true
        },
        "issueID": {
          "description": "The issue ID.",
          "type": "integer",
          "writeOnly": true
        },
        "number": {
          "description": "The value of number type custom field when `_type` is `NumberIssueField`.",
          "type": "number"
        },
        "optionID": {
          "description": "The value of single select and multiselect custom field type when `_type` is `SingleSelectIssueField` or `MultiSelectIssueField`.",
          "type": "string"
        },
        "richText": {
          "description": "The value of richText type custom field when `_type` is `RichTextIssueField`.",
          "type": "string"
        },
        "string": {
          "description": "The value of string type custom field when `_type` is `StringIssueField`.",
          "type": "string"
        },
        "text": {
          "description": "The value of of text custom field type when `_type` is `TextIssueField`.",
          "type": "string"
        }
      },
      "required": [
        "_type",
        "fieldID",
        "issueID"
      ],
      "type": "object",
      "writeOnly": true
    }
  }
}