Skip to content

API Reference parrot.interfaces.jira.models

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot.interfaces.jira.models

View source

Pydantic v2 models for the shared Jira read interface (FEAT-454, M1).

These models are the network-free, jira-package-free projection surface shared by :class:parrot.interfaces.jira.client.JiraInterface, JiraToolkit and the wiki sweep (parrot.knowledge.wiki.jira_sync).

Design notes:

  • JiraPerson deliberately has no email field — G9. Raw Jira user objects always carry emailAddress; it must never survive the _person() projection helper in :mod:parrot.interfaces.jira.parse.
  • JiraAttachmentRef / JiraRemoteLink are references only — nothing is ever downloaded (non-goal).

Class JiraAttachmentRef

Reference only — never downloaded (Non-Goal).

Fields:

Field Type Default Description
filename str
size_bytes int | None None
mime_type str | None None
url str

Class JiraChangeEvent

A single changelog history event for one field.

Fields:

Field Type Default Description
at datetime
field str
from_value str | None None
to_value str | None None
author JiraPerson | None None

Class JiraIssue

Validated projection of a raw Jira issue payload.

Produced by :func:parrot.interfaces.jira.parse.parse_issue. Collections (labels, components) are left in Jira's native order here — the renderer (jira_render.py) is responsible for sorting them; that is where the determinism contract lives (G2). Do not sort twice.

Fields:

Field Type Default Description
key str
issue_id str
project_key str
issue_type str
status str
resolution str | None None
priority str | None None
summary str
description_html str | None None
acceptance_criteria_html str | None None
assignee JiraPerson | None None
reporter JiraPerson | None None
labels list[str]
components list[str]
epic_key str | None None
parent_key str | None None
subtask_keys list[str]
links list[JiraIssueLink]
created_at datetime | None None
updated_at datetime | None None
resolved_at datetime | None None
history list[JiraChangeEvent]
attachments list[JiraAttachmentRef]
remote_links list[JiraRemoteLink]
url str

Class JiraIssueLink

A single normalized issue link.

Fields:

Field Type Default Description
kind JiraIssueLinkKind
target_key str

Class JiraIssueLinkKind

Normalized issue-link relationship, direction-aware.

Class JiraPerson

A Jira user. NO email field — G9.

Fields:

Field Type Default Description
account_id str
display_name str

Class JiraRemoteLink

A Jira remote link (e.g. a wiki page or external URL).

Fields:

Field Type Default Description
title str
url str

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally