{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/currents-dev/json-schema/currents-dev-create-jira-issue-from-run-test-request-schema.json",
  "title": "CreateJiraIssueFromRunTestRequest",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/currents-dev-openapi.yml#/components/schemas/CreateJiraIssueFromRunTestRequest",
  "type": "object",
  "required": [
    "runId",
    "testId",
    "jiraInstallationId",
    "jiraProjectId",
    "jiraIssueType"
  ],
  "properties": {
    "runId": {
      "type": "string",
      "minLength": 1,
      "description": "Currents run ID containing the test"
    },
    "testId": {
      "type": "string",
      "minLength": 1,
      "description": "Test ID within the run (client test id)"
    },
    "jiraInstallationId": {
      "type": "string",
      "minLength": 1,
      "description": "Atlassian Jira installation ID for the org integration (same as Installation ID in the dashboard)"
    },
    "jiraProjectId": {
      "type": "string",
      "minLength": 1,
      "description": "Jira project ID in which to create the issue"
    },
    "jiraIssueType": {
      "type": "string",
      "minLength": 1,
      "description": "Jira issue type ID"
    },
    "customFields": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "fieldId",
          "value"
        ],
        "properties": {
          "fieldId": {
            "type": "string",
            "minLength": 1,
            "description": "Jira field ID (matches `fieldId` from issue type discovery)"
          },
          "value": {
            "type": "string",
            "minLength": 1,
            "description": "String representation for the field value (encoding depends on field type; see Jira custom field docs)"
          }
        }
      },
      "description": "Optional Jira custom fields"
    }
  }
}