jira

package
v0.51.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Connection JiraConnectionConfig    `mapstructure:"connection" yaml:"connection"`
	FieldMaps  map[string]FieldMapping `mapstructure:"field_maps" yaml:"field_maps"`
}

Config represents the JIRA configuration for a domain

func (*Config) GetJiraFields

func (c *Config) GetJiraFields() []string

GetJiraFields extracts all JIRA field names from the field mappings for more efficient API calls

func (*Config) Validate

func (c *Config) Validate() error

Validate validates the JIRA configuration.

type FieldMapping

type FieldMapping struct {
	JiraField string `mapstructure:"jira_field" yaml:"jira_field"` // e.g., "customfield_10001"
}

FieldMapping defines how a JIRA field maps to a config field

type JiraConnectionConfig

type JiraConnectionConfig struct {
	BaseURL  string `mapstructure:"base_url" yaml:"base_url"`
	Project  string `mapstructure:"project" yaml:"project"`
	Username string `mapstructure:"username" yaml:"username,omitempty"`
}

JiraConnectionConfig contains JIRA connection details

Jump to

Keyboard shortcuts

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