{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ptc/json-schema/ptc-tracker-item-schema.json",
  "title": "TrackerItem",
  "description": "Basic properties of a codebeamer tracker item",
  "x-generated": "2026-12-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ptc-codebeamer-api-openapi.yml#/components/schemas/TrackerItem",
  "type": "object",
  "properties": {
    "accruedMillis": {
      "type": "integer",
      "format": "int64",
      "description": "Accrued work time of a tracker item in milliseconds",
      "readOnly": true
    },
    "angularIcon": {
      "type": "string",
      "description": "Angular icon for the tracker item",
      "readOnly": true
    },
    "areas": {
      "type": "array",
      "description": "Areas of a tracker item",
      "items": {
        "$ref": "#/$defs/AbstractReference"
      }
    },
    "assignedAt": {
      "type": "string",
      "format": "date-time",
      "description": "Assignee date of a tracker item",
      "readOnly": true
    },
    "assignedTo": {
      "type": "array",
      "description": "Assignees of a tracker item",
      "items": {
        "$ref": "#/$defs/AbstractReference"
      }
    },
    "categories": {
      "type": "array",
      "description": "Categories of a tracker item",
      "items": {
        "$ref": "#/$defs/AbstractReference"
      }
    },
    "children": {
      "type": "array",
      "description": "Children of a tracker item",
      "items": {
        "$ref": "#/$defs/TrackerItemReference"
      },
      "readOnly": true
    },
    "closedAt": {
      "type": "string",
      "format": "date-time",
      "description": "Close date of a tracker item"
    },
    "comments": {
      "type": "array",
      "description": "Comment in the tracker item",
      "items": {
        "$ref": "#/$defs/CommentReference"
      },
      "readOnly": true
    },
    "commonItemId": {
      "type": "integer",
      "format": "int32",
      "description": "Id shared by the branched versions of the tracker item"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "description": "The date when the entity was created"
    },
    "createdBy": {
      "$ref": "#/$defs/UserReference"
    },
    "customFields": {
      "type": "array",
      "description": "Custom field of a tracker item",
      "items": {
        "$ref": "#/$defs/AbstractFieldValue"
      }
    },
    "description": {
      "type": "string",
      "description": "Description of the entity"
    },
    "descriptionFormat": {
      "type": "string",
      "description": "Description format of the entity",
      "enum": [
        "PlainText",
        "Html",
        "Wiki"
      ]
    },
    "endDate": {
      "type": "string",
      "format": "date-time",
      "description": "End date of a tracker item"
    },
    "estimatedMillis": {
      "type": "integer",
      "format": "int64",
      "description": "Estimated work time of a tracker item in milliseconds"
    },
    "formality": {
      "$ref": "#/$defs/AbstractReference"
    },
    "iconColor": {
      "type": "string",
      "description": "Color of the tracker item icon",
      "readOnly": true
    },
    "iconUrl": {
      "type": "string",
      "description": "Url of the tracker item icon",
      "readOnly": true
    },
    "id": {
      "type": "integer",
      "format": "int32",
      "description": "Id of the entity",
      "minimum": 0
    },
    "modifiedAt": {
      "type": "string",
      "format": "date-time",
      "description": "The date when the entity was modified"
    },
    "modifiedBy": {
      "$ref": "#/$defs/UserReference"
    },
    "name": {
      "type": "string",
      "description": "Name of the entity"
    },
    "ordinal": {
      "type": "integer",
      "format": "int32",
      "description": "Ordinal of a tracker item"
    },
    "owners": {
      "type": "array",
      "description": "Owners of a tracker item",
      "items": {
        "$ref": "#/$defs/AbstractReference"
      }
    },
    "parent": {
      "$ref": "#/$defs/TrackerItemReference"
    },
    "platforms": {
      "type": "array",
      "description": "Platforms of a tracker item",
      "items": {
        "$ref": "#/$defs/AbstractReference"
      }
    },
    "priority": {
      "$ref": "#/$defs/AbstractReference"
    },
    "releaseMethod": {
      "$ref": "#/$defs/AbstractReference"
    },
    "resolutions": {
      "type": "array",
      "description": "Resolutions of a tracker item",
      "items": {
        "$ref": "#/$defs/AbstractReference"
      }
    },
    "severities": {
      "type": "array",
      "description": "Severities of a tracker item",
      "items": {
        "$ref": "#/$defs/AbstractReference"
      }
    },
    "spentMillis": {
      "type": "integer",
      "format": "int64",
      "description": "Spent work time of a tracker item in milliseconds"
    },
    "startDate": {
      "type": "string",
      "format": "date-time",
      "description": "Start date of a tracker item"
    },
    "status": {
      "$ref": "#/$defs/AbstractReference"
    },
    "storyPoints": {
      "type": "integer",
      "format": "int32",
      "description": "Story points of a tracker item"
    },
    "subjects": {
      "type": "array",
      "description": "Subjects of a tracker item",
      "items": {
        "$ref": "#/$defs/AbstractReference"
      }
    },
    "tags": {
      "type": "array",
      "description": "Tags of the tracker item",
      "items": {
        "$ref": "#/$defs/Label"
      },
      "readOnly": true
    },
    "teams": {
      "type": "array",
      "description": "Teams of a tracker item",
      "items": {
        "$ref": "#/$defs/AbstractReference"
      }
    },
    "tracker": {
      "$ref": "#/$defs/TrackerReference"
    },
    "typeName": {
      "type": "string",
      "description": "Type name of a tracker item"
    },
    "version": {
      "type": "integer",
      "format": "int32",
      "description": "Version of a tracker item",
      "readOnly": true
    },
    "versions": {
      "type": "array",
      "description": "Versions of a tracker item",
      "items": {
        "$ref": "#/$defs/AbstractReference"
      }
    }
  },
  "$defs": {
    "AbstractFieldValue": {
      "type": "object",
      "description": "Value container of a field",
      "properties": {
        "fieldId": {
          "type": "integer",
          "format": "int32",
          "description": "Id of the field"
        },
        "name": {
          "type": "string",
          "description": "Name of the field"
        },
        "sharedFieldName": {
          "type": "string",
          "description": "The name of a shared field assigned to the field. This can be specified as an alternative to fieldId.",
          "writeOnly": true
        },
        "sharedFieldNames": {
          "type": "array",
          "description": "The names of a shared fields assigned to the field.",
          "items": {
            "type": "string",
            "description": "The names of a shared fields assigned to the field."
          }
        },
        "type": {
          "type": "string",
          "description": "Type of the field"
        }
      },
      "required": [
        "type"
      ]
    },
    "AbstractReference": {
      "type": "object",
      "description": "Reference to an item",
      "properties": {
        "id": {
          "type": "integer",
          "format": "int32",
          "description": "Id of the entity",
          "minimum": 0
        },
        "name": {
          "type": "string",
          "description": "Name of the entity"
        },
        "type": {
          "type": "string",
          "description": "Type of a referenced object"
        }
      }
    },
    "CommentReference": {
      "type": "object",
      "allOf": [
        {
          "$ref": "#/$defs/AbstractReference"
        }
      ],
      "description": "Reference to a comment of a tracker item"
    },
    "Label": {
      "type": "object",
      "description": "Label that is used for entities like tags.",
      "properties": {
        "createdAt": {
          "type": "string",
          "format": "date-time",
          "description": "The date when the entity was created"
        },
        "createdBy": {
          "$ref": "#/$defs/UserReference"
        },
        "hidden": {
          "type": "boolean",
          "description": "Whether the label is hidden or not"
        },
        "id": {
          "type": "integer",
          "format": "int32",
          "description": "Id of the entity",
          "minimum": 0
        },
        "name": {
          "type": "string",
          "description": "Name of the entity"
        },
        "privateLabel": {
          "type": "boolean",
          "description": "Whether the label is private or not"
        }
      },
      "readOnly": true
    },
    "TrackerItemReference": {
      "type": "object",
      "allOf": [
        {
          "$ref": "#/$defs/AbstractReference"
        },
        {
          "type": "object",
          "properties": {
            "angularIcon": {
              "type": "string"
            },
            "commonItemId": {
              "type": "integer",
              "format": "int32"
            },
            "iconColor": {
              "type": "string"
            },
            "propagateSuspects": {
              "type": "boolean"
            },
            "referenceData": {
              "$ref": "#/$defs/TrackerItemReferenceData"
            },
            "testStepReuse": {
              "type": "boolean"
            },
            "trackerKey": {
              "type": "string"
            },
            "trackerTypeId": {
              "type": "integer",
              "format": "int32"
            },
            "uri": {
              "type": "string"
            }
          }
        }
      ],
      "description": "Reference to a tracker item"
    },
    "TrackerItemReferenceData": {
      "type": "object",
      "description": "Properties of a tracker item reference",
      "properties": {
        "suspectPropagation": {
          "type": "string",
          "description": "Type of suspect propagation",
          "enum": [
            "DO_NOT_PROPAGATE",
            "PROPAGATE",
            "REVERSE",
            "BIDIRECTIONAL"
          ]
        }
      }
    },
    "TrackerReference": {
      "type": "object",
      "allOf": [
        {
          "$ref": "#/$defs/AbstractReference"
        }
      ],
      "description": "Reference to a tracker"
    },
    "UserReference": {
      "type": "object",
      "allOf": [
        {
          "$ref": "#/$defs/AbstractReference"
        },
        {
          "type": "object",
          "properties": {
            "displayName": {
              "type": "string",
              "description": "Display name of the user (formatted using the 'accountLink' application config)"
            },
            "email": {
              "type": "string",
              "description": "Email of a referenced user"
            }
          }
        }
      ],
      "description": "Reference to a user"
    }
  }
}