Skip to content

API Reference parrot.interfaces.jira.parse

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

parrot.interfaces.jira.parse

View source

Pure raw-Jira-JSON → :class:JiraIssue projection (FEAT-454, M1).

parse_issue is a deterministic function of its inputs: no network, no filesystem, no LLM, no clock. It is the PII boundary for this feature (G9) — every Jira user object is routed through :func:_person, which reads only accountId and displayName and never spreads or model_validates the raw dict, so emailAddress (present on every raw Jira user object) can never reach a :class:JiraPerson instance.

Alias JiraAttachmentRef

Re-exported from parrot.interfaces.jira.models.JiraAttachmentRef.

Alias JiraChangeEvent

Re-exported from parrot.interfaces.jira.models.JiraChangeEvent.

Alias JiraIssue

Re-exported from parrot.interfaces.jira.models.JiraIssue.

Alias JiraIssueLink

Re-exported from parrot.interfaces.jira.models.JiraIssueLink.

Alias JiraIssueLinkKind

Re-exported from parrot.interfaces.jira.models.JiraIssueLinkKind.

Alias JiraPerson

Re-exported from parrot.interfaces.jira.models.JiraPerson.

Alias JiraRemoteLink

Re-exported from parrot.interfaces.jira.models.JiraRemoteLink.

Attribute logger

Function parse_issue

Project a raw Jira issue payload into a validated :class:JiraIssue.

Pure: no network, no filesystem, no LLM, no clock. Called twice with the same arguments, it returns equal models (G2).

parse_issue(raw: dict[str, Any], *, base_url: str, ac_field_id: str | None = None, raw_remote_links: list[dict[str, Any]] | None = None) -> JiraIssue

Parameter Type Default Description
raw dict[str, Any] Raw Jira issue JSON (as returned by GET /issue/{key} with expand=renderedFields,changelog).
base_url str Jira instance base URL, used to build the browse url.
ac_field_id str | None None Resolved acceptance-criteria custom field id (see JiraInterface.resolve_ac_field_id, TASK-2400), or None to omit the acceptance-criteria section entirely.
raw_remote_links list[dict[str, Any]] | None None Raw /remotelink entries for this issue, fetched separately via JiraInterface.get_remote_links (remote links live on their own endpoint, never in fields) — or None to omit them entirely. Optional and additive: every existing caller that omits it keeps getting remote_links=[], exactly as before.

Returns: JiraIssue — A validated :class:JiraIssue.

Raises:

  • ValueError — If a required field (key, issue_id, project_key, issue_type, status, summary) is missing from the payload — never a bare KeyError.

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