Reports
π Section 8: Reports & Utilities¶
gira report
¶
Description: Generates a summary report of current project activity and status. Offers high-level overviews for sprints, epics, ticket distribution, and backlog health.
Default Output:
- Total tickets by status
- Backlog size
- Active sprints with progress %
- Open vs closed epics
- Swimlane utilization (e.g., how many tickets are βin-reviewβ)
Options:
--sprint <SPRINT_ID>
β report on one sprint--epic <EPIC_ID>
β report on epic progress--all
β include archived items--json
β machine-readable report
Example:
gira validate
¶
Description: Performs a consistency and health check across all Gira data. Ensures no orphaned, corrupt, or mislinked records exist.
Checks Performed:
- All tickets have valid
metadata.json
anddescription.md
- Tickets linked to missing epics/sprints are flagged
- Epics reference valid child ticket IDs
- Comments and attachments are valid JSON
- Directory structure matches
.gira/config
Options:
--fix
β attempt to auto-repair issues (e.g., unlink broken references)--json
β show validation results in structured format--silent
β suppress warnings unless critical
Example:
gira archive
¶
Description:
Archives completed tickets by moving them to .gira/archive/YYYY-MM/
. Can be scoped by date, status, or sprint.
Behavior:
- Updates ticket status to
done
(if not already) - Moves ticket folder from board/backlog to archive
- Updates indices and relationships as needed
Options:
--month YYYY-MM
β archive tickets completed in a given month--sprint <SPRINT_ID>
β archive tickets from a closed sprint--older-than <N>
β archive tickets closed N days ago--dry-run
β preview which tickets will be archived--json
β report archived items
Example:
gira search <query>
¶
Description: Searches across ticket titles, descriptions, comments, and metadata for keywords or expressions.
Supports:
- Full-text search
- Metadata filters (e.g.
assignee:alice status:todo
) - Fuzzy match (optional)
- Phrase queries (
"setup CI/CD"
)
Options:
--comments
β include comment body in search--json
β structured results--limit N
β max number of results
Example:
gira stats
¶
Description: Outputs raw project metrics for dashboards, analytics, or AI agents.
Includes:
- Total ticket count
- Tickets per priority, status, swimlane
- Epic and sprint counts
- Average ticket age
- Lead time and cycle time (if timestamps are available)
Options:
--json
β machine-friendly output--since <YYYY-MM-DD>
β only consider tickets updated since date--top <N>
β top assignees or labels by activity
Example: