{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "imports-v2/iteration_cards.json",
  "title": "Iteration cards",
  "description": "Puts a card into an iteration (sprint), including iterations that are already closed. Write one record per iteration and card; the card keeps its place on the board and the iteration only lists it. The cards of an iteration keep the order of their records.",
  "type": "object",
  "properties": {
    "external_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 512,
      "description": "Your own identifier of the record, for example `k-mrr`, unique within the resource across all of its files and case sensitive. Other records refer to this one by it."
    },
    "iteration_ref": {
      "type": "string",
      "minLength": 1,
      "maxLength": 512,
      "x-ref": "iterations",
      "description": "The iteration. Give the external_id of a `iterations` record."
    },
    "card_ref": {
      "type": "string",
      "minLength": 1,
      "maxLength": 512,
      "x-ref": "cards",
      "description": "The card that belongs to the iteration. Give the external_id of a `cards` record."
    },
    "added_by_ref": {
      "type": [
        "string",
        "null"
      ],
      "minLength": 1,
      "maxLength": 512,
      "x-ref": "users",
      "description": "The user who put the card into the iteration. Give the external_id of a `users` record."
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(Z|[+-]\\d{2}:\\d{2})$",
      "description": "When the record was created, with a time zone, for example `2026-01-12T09:30:00Z`.",
      "x-default-text": "source.exported_at of the manifest"
    }
  },
  "required": [
    "external_id",
    "iteration_ref",
    "card_ref"
  ],
  "additionalProperties": false
}
