From teams
Query and summarize JIRA bugs for a specific project with counts by component
How this command is triggered — by the user, by Claude, or both
Slash command
/teams:health-check-jiras --project <project> [--component comp1 comp2 ...] [--team <team-name>] [--status status1 status2 ...] [--include-closed] [--limit N]Files this command reads when invoked
The summary Claude sees in its command listing — used to decide when to auto-load this command
## Name teams:health-check-jiras ## Synopsis ## Description The `teams:health-check-jiras` command queries JIRA bugs for a specified project and generates summary statistics. It leverages the `list-jiras` command to fetch raw JIRA data and then calculates counts by status, priority, and component to help understand the bug backlog at a glance. By default, the command includes: - All currently open bugs - Bugs closed in the last 30 days (to track recent closure activity) This command is useful for: - Getting a quick count of open bugs in a JIRA project - Analyzing bug distribution b...
teams:health-check-jiras
/teams:health-check-jiras --project <project> [--component comp1 comp2 ...] [--status status1 status2 ...] [--include-closed] [--limit N]
/teams:health-check-jiras --project <project> --team <team-name> [--status status1 status2 ...] [--include-closed] [--limit N]
The teams:health-check-jiras command queries JIRA bugs for a specified project and generates summary statistics. It leverages the list-jiras command to fetch raw JIRA data and then calculates counts by status, priority, and component to help understand the bug backlog at a glance.
By default, the command includes:
This command is useful for:
Verify Prerequisites: Check that Python 3 is installed
python3 --versionVerify Environment Variables: Ensure JIRA authentication is configured
Check that the following environment variables are set:
JIRA_URL: Base URL for JIRA instance (e.g., "https://redhat.atlassian.net")JIRA_USERNAME: Your JIRA username (email address) for Basic authJIRA_API_TOKEN: Your JIRA API tokenVerify with:
echo "JIRA_URL: ${JIRA_URL}"
echo "JIRA_USERNAME: ${JIRA_USERNAME}"
echo "JIRA_API_TOKEN: ${JIRA_API_TOKEN:+***set***}"
If missing, guide the user to set them:
export JIRA_URL="https://redhat.atlassian.net"
export JIRA_USERNAME="[email protected]"
export JIRA_API_TOKEN="your-api-token-here"
Parse Arguments: Extract project key and optional filters from arguments
--project flag (e.g., "OCPBUGS", "OCPSTRAT")--component: Space-separated list of component search strings (fuzzy match)--team: Team name (looks up all components for that team)--status: Space-separated list of status values--include-closed: Flag to include closed bugs--limit: Maximum number of issues to fetch per component (default: 1000, max: 1000)--component and --team are mutually exclusiveResolve Component Names: Use fuzzy matching or team lookup to find actual component names
--team was provided:
get_team_components()--component was provided:
python3 plugins/teams/skills/list-components/list_components.py
--component:
Execute Python Script: Run the summarize_jiras.py script
plugins/teams/skills/summarize-jiras/summarize_jiras.pylist_jiras.py to fetch raw data and handles all components in one invocation--team was provided:
python3 summarize_jiras.py --project <project> --team "<team>" [other args]--component was provided:
python3 summarize_jiras.py --project <project> --component <components> [other args]python3 summarize_jiras.py --project <project> [other args]Parse Output: Process the aggregated JSON response
total_count: Total matching issues in JIRAfetched_count: Number of issues actually fetchedsummary.by_status: Count of issues per statussummary.by_priority: Count of issues per prioritysummary.by_component: Count of issues per componentPresent Results: Display summary in a clear format
Error Handling: Handle common error scenarios
The command outputs a JIRA Bug Summary with the following information:
Overall Metrics:
By Status: Count of bugs in each status (includes recently closed)
| Status | Count |
|---|---|
| New | X |
| In Progress | X |
| Verified | X |
| Closed | X |
| ... | ... |
By Priority: Count of bugs by priority level
| Priority | Count |
|---|---|
| Critical | X |
| Major | X |
| Normal | X |
| Minor | X |
| Undefined | X |
By Component: Count of bugs per component
| Component | Count |
|---|---|
| kube-apiserver | X |
| Management Console | X |
| Networking | X |
| ... | ... |
For each component:
Summarize all open bugs for a project:
/teams:health-check-jiras --project OCPBUGS
Fetches all open bugs in the OCPBUGS project (up to default limit of 1000) and displays summary statistics.
Filter by specific component:
/teams:health-check-jiras --project OCPBUGS --component "kube-apiserver"
Shows bug counts for only the kube-apiserver component.
Filter by multiple components:
/teams:health-check-jiras --project OCPBUGS --component "kube-apiserver" "etcd" "Networking"
Shows bug counts for kube-apiserver, etcd, and Networking components.
Include closed bugs:
/teams:health-check-jiras --project OCPBUGS --include-closed --limit 500
Includes both open and closed bugs, fetching up to 500 issues.
Filter by status:
/teams:health-check-jiras --project OCPBUGS --status New "In Progress" Verified
Shows only bugs in New, In Progress, or Verified status.
Filter by team:
/teams:health-check-jiras --project OCPBUGS --team "API Server"
Automatically looks up all components for the "API Server" team and shows bug counts:
/teams:list-teams to see available team namesCombine multiple filters:
/teams:health-check-jiras --project OCPBUGS --component "Management Console" --status New Assigned --limit 200
Shows bugs for Management Console component that are in New or Assigned status.
--project <project> (required): JIRA project key
Additional optional flags:
--component <search1> [search2 ...]: Filter by component names using fuzzy search
--team--team <team-name>: Filter by team name
/teams:list-teams to see available team names--component--status <status1> [status2 ...]: Filter by status values
New, "In Progress", Verified, Modified, ON_QA--include-closed: Include closed bugs in results
--limit <N>: Maximum number of issues to fetch per component
Python 3: Required to run the data fetching and summarization scripts
which python3JIRA Authentication: Environment variables must be configured
JIRA_URL: Your JIRA instance URLJIRA_USERNAME: Your JIRA username (email address) for Basic authJIRA_API_TOKEN: Your JIRA API tokenHow to get a JIRA API token:
Network Access: Must be able to reach your JIRA instance
/teams:list-jiras to fetch raw dataplugins/teams/skills/summarize-jiras/SKILL.mdplugins/teams/skills/summarize-jiras/summarize_jiras.py/teams:list-jiras (for raw JIRA data)/teams:health-check (for combined health analysis)npx claudepluginhub cblecker/ai-helpers --plugin teams/health-check-jirasQueries JIRA bugs for a project and generates summary statistics with counts by status, priority, and component. Supports filtering by component, team, status, and including closed bugs.