Skip to content

API Reference parrot_tools.jira_kb

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

parrot_tools.jira_kb

View source

Jira site knowledge base — YAML-backed structural cache (FEAT-696 M6).

Class IssueTypeEntry

One issue type inside a project.

Fields:

Field Type Default Description
id str
subtask bool False
level int 0

Class JiraKnowledgeBase

Jira site structural cache loaded from a YAML file.

Fields:

Field Type Default Description
site str
cloud_id Optional[str] None
verified Optional[str] None
projects dict[str, ProjectEntry]
priorities PrioritiesEntry
status_map dict[str, list[str]]
fields dict[str, str]
limits LimitsEntry
templates dict[str, TemplateEntry]
components list[str]

Method JiraKnowledgeBase.load

Load a KB from a YAML file.

load(path: Union[str, Path]) -> 'JiraKnowledgeBase'

Parameter Type Default Description
path Union[str, Path] Path to the YAML file.

Returns: 'JiraKnowledgeBase' — The parsed knowledge base.

Raises:

  • ValueError — If the file is not a YAML mapping.

Method JiraKnowledgeBase.save

Write the KB to a YAML file, preserving comments of the file it was loaded from.

save(path: Union[str, Path]) -> None

Parameter Type Default Description
path Union[str, Path] Destination path; parent directories are created.

Method JiraKnowledgeBase.resolve_issue_type

Resolve an issue type by name or id within a project.

resolve_issue_type(project: str, name_or_id: str) -> Optional[IssueTypeEntry]

Parameter Type Default Description
project str
name_or_id str

Returns: Optional[IssueTypeEntry]

Method JiraKnowledgeBase.resolve_field

Return the Jira field id for an alias, or the alias unchanged.

resolve_field(alias: str) -> str

Parameter Type Default Description
alias str

Returns: str

Method JiraKnowledgeBase.status_category

Return the category name for a status (case-insensitive), or None.

status_category(status: str) -> Optional[str]

Parameter Type Default Description
status str

Returns: Optional[str]

Method JiraKnowledgeBase.validate_limits

Raise ValueError if field lengths exceed KB limits.

validate_limits(*, summary: Optional[str] = None, description: Optional[str] = None) -> None

Parameter Type Default Description
summary Optional[str] None
description Optional[str] None

Method JiraKnowledgeBase.merge_generated

Merge structural sections from generated with curated sections from self.

Structural (from generated): site, cloud_id, verified, projects, priorities.scale, components, discovered field aliases. Curated (from self): status_map, templates, limits, priorities.legacy/default, extra keys, and hand-edited field aliases whose ids are still known.

merge_generated(generated: 'JiraKnowledgeBase') -> 'JiraKnowledgeBase'

Parameter Type Default Description
generated 'JiraKnowledgeBase' Freshly generated knowledge base.

Returns: 'JiraKnowledgeBase' — A new merged knowledge base.

Class LimitsEntry

Field length limits enforced before API calls.

Fields:

Field Type Default Description
description_max_chars Optional[int] None
summary_max_chars Optional[int] None
summary_target_chars Optional[int] None

Class PrioritiesEntry

Priority scale plus legacy names.

Fields:

Field Type Default Description
scale list[str]
legacy list[str]
default Optional[str] None

Class ProjectEntry

Project with its issue-type map.

Fields:

Field Type Default Description
name str
issue_types dict[str, IssueTypeEntry]

Class TemplateEntry

Template to allowed issue types mapping.

Fields:

Field Type Default Description
types list[str]
default str

Attribute logger

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