/jira:generate-feature-doc <feature-key>from jira
Generates feature documentation from a Jira feature ticket, recursively analyzing related issues and linked GitHub PRs. Outputs a markdown file with overview, architecture, and usage.
Ships in jira. Installing the plugin adds it to Claude Code.
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)
parent = KEY BFSGenerate 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://redhat.atlassian.netGitHub 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/3/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)
What the command file sets; muted values are Claude Code's defaults
jira, github, feature-documentation, pr-analysis, issue-analysis, onboarding
7-day visitors to each command page
npx claudepluginhub openshift-eng/ai-helpers --plugin jira17 commands in this plugin
/backlogNameFind suitable JIRA tickets from the backlog to work on based on priority and activity/batch-categorize-activity-typesNameBatch-categorize Jira issues into Activity Types using AI and apply updates via MCP/catch-me-upNameTriage recent Jira activity — surface what needs attention, filter out noise/categorize-activity-typeNameCategorize JIRA tickets into activity types using AI/clone-from-githubNameClone GitHub issues to Jira with proper formatting and linking/create-release-noteNameGenerate bug fix release notes from Jira tickets and linked GitHub PRsOther plugins' commands for the same job