Generate comprehensive feature documentation from Jira feature and all related issues and PRs
Generates comprehensive feature documentation by analyzing Jira issues and linked GitHub PRs.
/plugin marketplace add openshift-eng/ai-helpers/plugin install jira@ai-helpers<feature-key>jira:generate-feature-doc
/jira:generate-feature-doc <feature-key>
The jira:generate-feature-doc command generates comprehensive feature documentation by recursively analyzing a Jira feature ticket and all its related issues, sub-tasks, and linked GitHub pull requests.
This command is particularly useful for:
The command performs deep analysis of:
This command orchestrates two skills in sequence to generate comprehensive feature documentation:
Extract GitHub PRs (via jira:extract-prs skill)
childIssuesOf() JQLGenerate Documentation (via jira-doc-generator skill)
.work/jira/feature-doc/<feature-key>/feature-doc.mdFor detailed implementation, see:
plugins/jira/skills/extract-prs/SKILL.mdplugins/jira/skills/jira-doc-generator/SKILL.mdOCPSTRAT-1612).
Can be any issue type, but typically used for Features, Epics, or Stories..work/jira/feature-doc/<feature-key>/feature-doc.mdThe command generates a comprehensive markdown document at:
.work/jira/feature-doc/<feature-key>/feature-doc.md
# Feature: <Feature Title>
## Overview
- **Jira Issue**: <main issue link>
- **Status**: <status>
- **Related Issues**: <count>
- **Related PRs**: <count>
- **Implementation Period**: <date range>
## Background and Goals
<Extracted from feature description>
## Architecture and Design
<Synthesized from design discussions and PR descriptions>
## Usage Guide
<How to use the implemented feature>
## Related Resources
<External links only - no tables>
Generate documentation for a feature:
/jira:generate-feature-doc OCPSTRAT-1612
The command will:
.work/jira/feature-doc/OCPSTRAT-1612/feature-doc.mdš Analyzing OCPSTRAT-1612...
š Discovering related issues (subtasks only)...
ā Found main feature: "Configure and Modify Internal OVN IPV4 Subnets"
ā Discovered 2 subtasks
Total issues: 3
š Extracting GitHub PRs...
- From text (descriptions/comments): 1 PR
- From Remote Links API (PRIMARY): 6 PRs
Total unique PRs: 7 (after deduplication)
š Analyzing PRs (MERGED only)...
ā [1/7] openshift/hypershift#6444 (MERGED)
ā ļø [2/7] openshift/hypershift#6500 (OPEN - skipped)
ā [3/7] openshift/hypershift#6554 (MERGED)
...
š Generating documentation...
ā Feature overview and background
ā Architecture and design section
ā Implementation details
ā Related resources index
ā
Documentation generated successfully!
š File: .work/jira/feature-doc/OCPSTRAT-1612/feature-doc.md
š Statistics:
- Jira issues analyzed: 3 (1 feature + 2 subtasks)
- GitHub PRs discovered: 7
- GitHub PRs analyzed: 5 (MERGED only)
- GitHub PRs skipped: 2 (1 OPEN, 1 CLOSED)
- Total commits: 12
- Total files changed: 41
- Documentation lines: 150
For complete error handling documentation, see SKILL.md. Common scenarios:
See jira-doc-generator SKILL.md Section "Error Handling" for detailed guidance.
jq - JSON parser
which jqbrew install jq (macOS) or apt-get install jq (Linux)GitHub CLI (gh) - For fetching PR data
brew install gh (macOS) or see GitHub CLI docsgh auth logingh auth statusJIRA Access - Read permissions for issues
https://issues.redhat.comGitHub Access - Read access to repositories where PRs are located
jira:solve - Analyze and solve Jira issuesjira:create-release-note - Generate release notes from bugs and PRsjira:status-rollup - Create status rollup reportsutils:generate-test-plan - Generate test plans for featuresUses depth-first search with cycle detection:
See SKILL.md Step 2 for complete algorithm details.
Dual-source approach (implemented in SKILL.md Step 3):
/rest/api/2/issue/{key}/remotelink)
https?://github\.com/[a-zA-Z0-9_-]+/[a-zA-Z0-9_-]+/pulls?/[0-9]+Both sources are merged and deduplicated.
Only MERGED PRs are analyzed (implemented in SKILL.md Step 4):
This ensures documentation reflects only shipped implementation.
.work/jira/feature-doc/<feature-key>/
āāā feature-doc.md # Main documentation
āāā main-issue.json # Main feature issue data
āāā issue-*.json # Related issue data
āāā pr-*.json # PR metadata
āāā pr-*.diff # PR diffs
āāā pr-urls.txt # All discovered PR URLs
āāā analysis-log.txt # Analysis log (for debugging)