Skip to content

v0.31.0

Released: 2026-06-14

Highlights

This release adds a comments command to the CLI, includes description in JSON output, and provides a --raw flag for full API JSON. It also refactors shared code between CLI and MCP server to eliminate duplication.

New Features

Comments Command

New gojira comments command to retrieve comment threads for Jira issues:

# Get comments for an issue
gojira comments ISSUE-123

# Limit to 10 comments
gojira comments ISSUE-123 --max 10

Output:

{
  "key": "ISSUE-123",
  "total": 3,
  "comments": [
    {
      "id": "10001",
      "author": "John Doe",
      "body": "Started working on this.",
      "created": "2024-01-15T10:30:00.000+0000"
    }
  ]
}

See comments command documentation for details.

Description in JSON Output

The gojira get command now includes the issue description in JSON output by default:

{
  "key": "FOO-123",
  "summary": "Fix login bug",
  "description": "Users cannot log in when..."
}

Raw JSON Output

New --raw flag on the get command outputs the complete Jira API response instead of simplified metadata:

gojira get ISSUE-123 --raw

Use this when you need access to all fields including custom fields, comments, or other data not included in the default output.

Changes

Refactoring

Shared code between CLI and MCP server has been consolidated into the rest package:

  • New rest.IssueOutput type for unified issue representation
  • New rest.CommentResult type for comment output
  • New rest.Client.GetComments() method
  • New converter functions: ToIssueOutput(), ToCommentResults()

This eliminates ~150 lines of duplicated code and ensures consistent output between CLI and MCP.

Dependencies

  • Updated github.com/grokify/mogo to v0.74.6
  • Updated github.com/grokify/goauth to v0.23.30
  • Updated indirect dependencies

Installation

go install github.com/grokify/gojira/cmd/gojira@latest

Full Changelog

  • feat(rest): add Description field to IssueMeta
  • feat(rest): add shared types and converters for CLI and MCP
  • feat(rest): add GetComments method to Client
  • feat(cli): add Description to output and --raw flag for full JSON
  • feat(cli): add comments command
  • refactor(mcp): use shared converters from rest package
  • docs: add documentation for comments command and --raw flag
  • chore(deps): update indirect dependencies