ticketmanagement

package
v0.0.0-...-d3c0efd Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewJiraClient

func NewJiraClient(config Config) (*jira.Client, error)

func NewYouTrackClient

func NewYouTrackClient(config Config) *http.Client

func UpdateIssueDescription

func UpdateIssueDescription(client *http.Client, config Config, issueID, newDescription string) error

Types

type Config

type Config struct {
	BaseURL   string `mapstructure:"base_url"`
	Token     string `mapstructure:"token"`
	ProjectID string `mapstructure:"project_id"`
}

func ReadConfig

func ReadConfig(filename string) (Config, error)

type Issue

type Issue struct {
	ID    string `json:"id"`
	Title string `json:"title"`
}

func GetIssues

func GetIssues(client *http.Client, config Config) ([]Issue, error)

Jump to

Keyboard shortcuts

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