jirafields

package
v0.24.2 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: Apache-2.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package jirafields classifies and discovers Jira custom fields for the mirror. Pure functions only — no network, no database.

Split from internal/fields so store can import the source-neutral helpers without pulling Jira REST types or atlhttp onto its dependency graph (docs/ARCHITECTURE.md:79).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Classify

func Classify(f jira.FieldInfo) (role, kind string, ok bool)

Classify maps a Jira field schema onto a display role and editor kind. ok=false marks fields gadak should never surface (plugin plumbing, ranks).

func Discover

func Discover(catalog []jira.FieldInfo, fill map[string]int, prior []config.FieldSpec) []config.FieldSpec

Discover groups the custom-field catalog by normalized display name, keeps the groups the mirror has actually seen filled, and returns specs ordered by total fill count descending. Prior Auto:false specs are preserved; Auto:true prior entries donate aliases for stability.

func FieldMetaFromCreate added in v0.17.0

func FieldMetaFromCreate(f jira.CreateFieldMeta) jira.FieldMeta

FieldMetaFromCreate projects a createmeta list row onto the editmeta shape ResolveEditable consumes, so create --field uses the same interpreter.

func ResolveEditable added in v0.17.0

func ResolveEditable(candidates []string, meta map[string]jira.FieldMeta, fallbackKind string) (id, kind string, ok bool)

ResolveEditable is the editmeta field-key interpreter: first candidate present in meta whose schema editKind understands, or whose fallbackKind (the configured spec kind) can stand in. CLI edit, REST GET/PATCH fields, `gadak issue --editmeta`, and create --field all go through here.

Types

This section is empty.

Jump to

Keyboard shortcuts

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