GoJira¶
GoJira is a Go SDK and CLI for Jira that provides:
- REST API client (
rest/) - wrapper around go-jira with additional utilities - XML parser (
xml/) - parse Jira XML exports when API access is unavailable - JQL builder (root package) - programmatically construct JQL queries
- CLI tool (
cmd/gojira/) - command-line interface optimized for AI agents and humans
Features¶
- Multiple output formats: JSON, Table, and TOON (Token-Optimized Object Notation)
- Flexible authentication: Environment variables, goauth credential files, or CLI flags
- AI-agent friendly: Non-interactive mode, structured output, consistent exit codes
- Lightweight core: Root package has no external dependencies
Package Structure¶
| Package | Description | Dependencies |
|---|---|---|
gojira |
JQL builder, config, constants | None (lightweight) |
gojira/rest |
REST API client | go-jira SDK |
gojira/xml |
XML export parser | None |
gojira/web |
URL helpers | None |
Quick Example¶
Use Cases¶
- Automate Jira operations - Search, update, and export issues via CLI
- Build custom integrations - Use the SDK to integrate Jira with other systems
- Generate reports - Export issues to JSON/XLSX for analysis
- AI agent workflows - Token-optimized output for LLM consumption
- Parse XML exports - Access Jira data when API is unavailable
Getting Started¶
- Installation - Install the CLI and SDK
- Quick Start - Get up and running in minutes
- CLI Reference - Full command documentation
- SDK Guide - Using GoJira as a library