{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ptc/json-schema/ptc-tracker-schema.json",
  "title": "Tracker",
  "description": "Basic properties of a codebeamer tracker",
  "x-generated": "2026-12-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ptc-codebeamer-api-openapi.yml#/components/schemas/Tracker",
  "type": "object",
  "properties": {
    "availableAsTemplate": {
      "type": "boolean",
      "description": "Indicator if the tracker can be used as a template"
    },
    "color": {
      "type": "string",
      "description": "Color of the tracker"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "description": "The date when the entity was created"
    },
    "createdBy": {
      "$ref": "#/$defs/UserReference"
    },
    "defaultShowAncestorItems": {
      "type": "boolean",
      "description": "Default Outline should show Ancestor Items or not"
    },
    "defaultShowDescendantItems": {
      "type": "boolean",
      "description": "Default Outline should show Descendant Items or not"
    },
    "deleted": {
      "type": "boolean",
      "description": "Indicator if the tracker is deleted"
    },
    "description": {
      "type": "string",
      "description": "Description of the entity"
    },
    "descriptionFormat": {
      "type": "string",
      "description": "Description format of the entity",
      "enum": [
        "PlainText",
        "Html",
        "Wiki"
      ]
    },
    "digitalProductTraceability": {
      "type": "string",
      "enum": [
        "NONE",
        "CHANGE_REQUEST",
        "CHANGE_NOTICE",
        "DEFECT",
        "ENHANCEMENT",
        "TASK",
        "REQUIREMENT",
        "REVIEW_TASK"
      ]
    },
    "hidden": {
      "type": "boolean",
      "description": "Indicator if the tracker is hidden"
    },
    "id": {
      "type": "integer",
      "format": "int32",
      "description": "Id of the entity",
      "minimum": 0
    },
    "keyName": {
      "type": "string",
      "description": "Keyname of a tracker"
    },
    "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"
    },
    "onlyWorkflowCanCreateNewReferringItem": {
      "type": "boolean",
      "description": "If true, then the only way to create new referring items is through workflow actions"
    },
    "project": {
      "$ref": "#/$defs/ProjectReference"
    },
    "sharedInWorkingSet": {
      "type": "boolean",
      "description": "If the tracker is shared in a WorkingSet"
    },
    "templateTracker": {
      "$ref": "#/$defs/TrackerReference"
    },
    "trackerFieldLayoutSettingsModel": {
      "$ref": "#/$defs/TrackerFieldLayoutSettings"
    },
    "type": {
      "$ref": "#/$defs/TrackerTypeReference"
    },
    "usingQuickTransitions": {
      "type": "boolean",
      "description": "If true, then every transition will be executed immediately (if possible) without opening an editor for the item"
    },
    "usingWorkflow": {
      "type": "boolean",
      "description": "Should transitions and workflow actions be available in the tracker or not"
    },
    "version": {
      "type": "integer",
      "format": "int32",
      "description": "Version of a tracker"
    }
  },
  "required": [
    "defaultShowAncestorItems",
    "defaultShowDescendantItems",
    "deleted",
    "hidden",
    "onlyWorkflowCanCreateNewReferringItem",
    "usingQuickTransitions",
    "usingWorkflow"
  ],
  "$defs": {
    "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"
        }
      }
    },
    "FieldLayoutGroups": {
      "type": "object",
      "description": "groupsModels of a fieldLayoutSettingsModel",
      "properties": {
        "collapsed": {
          "type": "boolean",
          "description": "collapsed of a groupsModel"
        },
        "color": {
          "type": "string",
          "description": "color of a groupsModel"
        },
        "default": {
          "type": "boolean",
          "description": "default of a groupsModel"
        },
        "fields": {
          "type": "array",
          "description": "fieldModel of a groupsModel",
          "items": {
            "$ref": "#/$defs/LayoutField"
          }
        },
        "name": {
          "type": "string",
          "description": "name of a groupsModel"
        }
      }
    },
    "FieldLayoutSettings": {
      "type": "object",
      "description": "fieldLayoutSettingsModels of a tracker",
      "properties": {
        "groups": {
          "type": "array",
          "description": "groupsModels of a fieldLayoutSettingsModel",
          "items": {
            "$ref": "#/$defs/FieldLayoutGroups"
          }
        },
        "name": {
          "type": "string",
          "description": "name of a fieldLayoutSettingsModel"
        },
        "showDefault": {
          "type": "boolean",
          "description": "showDefault of a fieldLayoutSettingsModel"
        }
      }
    },
    "LayoutField": {
      "type": "object",
      "description": "fieldModel of a groupsModel",
      "properties": {
        "field": {
          "type": "string",
          "description": "field of a fieldModel"
        },
        "fieldId": {
          "type": "integer",
          "format": "int32",
          "description": "fieldId of a fieldModel"
        },
        "width": {
          "type": "string",
          "description": "width of a fieldModel"
        }
      }
    },
    "ProjectReference": {
      "type": "object",
      "allOf": [
        {
          "$ref": "#/$defs/AbstractReference"
        }
      ],
      "description": "Reference to a project"
    },
    "StatusLayout": {
      "type": "object",
      "description": "statusLayout of a tracker",
      "properties": {
        "layout": {
          "type": "string",
          "description": "layout of a statusLayout"
        },
        "status": {
          "type": "string",
          "description": "status of a statusLayout"
        }
      }
    },
    "TrackerFieldLayoutSettings": {
      "type": "object",
      "description": "The field group layouts setting is used when rendering the edit view for a specific tracker item",
      "properties": {
        "defaultLayout": {
          "type": "string",
          "description": "defaultLayout of a tracker"
        },
        "layouts": {
          "type": "array",
          "description": "fieldLayoutSettingsModels of a tracker",
          "items": {
            "$ref": "#/$defs/FieldLayoutSettings"
          }
        },
        "statusLayout": {
          "type": "array",
          "description": "statusLayout of a tracker",
          "items": {
            "$ref": "#/$defs/StatusLayout"
          }
        }
      }
    },
    "TrackerReference": {
      "type": "object",
      "allOf": [
        {
          "$ref": "#/$defs/AbstractReference"
        }
      ],
      "description": "Reference to a tracker"
    },
    "TrackerTypeReference": {
      "type": "object",
      "allOf": [
        {
          "$ref": "#/$defs/AbstractReference"
        }
      ],
      "description": "Reference to a tracker type"
    },
    "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"
    }
  }
}