statuscat

package
v0.18.1 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package statuscat is the single owner of the status-category contract: the three tokens data-model.md documents (new | inprogress | done), their mapping from Jira's REST statusCategory keys, and the reverse.

The table is deliberately not part of internal/jira (GDK-686): the JQL dialect keys on these tokens and its package doc promises it does not talk to Jira, so owning the vocabulary in the REST client made the parser link net/http (same reason jirafields was split from fields for the store firewall, docs/ARCHITECTURE.md:79). Stdlib only — nothing here may grow a dependency. Never key on status display names: they are localized per account ("진행 중").

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Category

func Category(key string) string

Category maps Jira's statusCategory key onto the three values data-model.md documents. An unknown key becomes "new", which can only ever miss a reopen, never invent one.

func CategoryKey

func CategoryKey(token string) string

CategoryKey is the reverse of Category: a gadak token (or a Jira key Category would accept) onto Jira's REST statusCategory key. inprogress becomes indeterminate, the key Cloud actually stores.

func KnownCategory

func KnownCategory(key string) (string, bool)

KnownCategory maps a Jira statusCategory key or a gadak token onto the three values data-model.md documents. Unlike Category, unknown keys are not folded to "new": write resolvers refuse those so a damaged payload cannot move an issue.

Types

This section is empty.

Jump to

Keyboard shortcuts

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