issue

package
v0.14.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 23, 2026 License: MIT Imports: 37 Imported by: 0

Documentation

Overview

Package issue hosts the `jira issue` command group — the CLI's largest verb — covering the issue lifecycle (create, view, list, edit, clone, move, delete, transition) and its sub-resources: comments, attachments, links, watchers, and rank. It also provides the top-level `jira open` shortcut.

Index

Constants

This section is empty.

Variables

View Source
var WatcherCommands = []func() *cobra.Command{
	issueWatcherCommand,
	issueWatchCommand,
	issueUnwatchCommand,
}

WatcherCommands is the public wiring slice the root command-tree dispatcher in commands.go consumes — keeps the registration surface explicit so each new sub-command lands in one place. Exposing it avoids "unused symbol" lint flags while incremental delivery is in flight.

Functions

func IssueAttachmentCommand

func IssueAttachmentCommand() *cobra.Command

IssueAttachmentCommand returns the `attachment` sub-command group for registration under `jira issue`. The lead wires this in commands.go's issueCommand() so the four sub-paths (list/add/delete/download) become available end-to-end.

func IssueListOutputData

func IssueListOutputData(cmd *cobra.Command, issues any, detail bool, query string) map[string]any

IssueListOutputData builds the base `issue.list` envelope data — the issues payload plus the detail flag, and the resolved JQL only under --debug. Exported so the shapes that extend it (boardScopedListData) and the output tests produce identical list output.

func NewCommand

func NewCommand() *cobra.Command

NewCommand returns the `issue` verb and all its sub-commands.

func NewOpenCommand added in v0.3.0

func NewOpenCommand() *cobra.Command

NewOpenCommand returns the top-level `jira open KEY` shortcut that opens an issue in the browser — the muscle-memory command, sharing openIssueWeb with `issue view --web`.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL