jira

package
v0.0.0-...-a1efb75 Latest Latest
Warning

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

Go to latest
Published: May 18, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFlags

func AddFlags(cmd *cobra.Command)

func DiffIssueLists

func DiffIssueLists(oldIssues, newIssues map[string]jira.Issue) (added []string, removed []string, err error)

func GetClient

func GetClient(cmd *cobra.Command) (*jira.Client, error)

func GetDiskIssues

func GetDiskIssues(cmd *cobra.Command, date string) (map[string]jira.Issue, error)

func GetIssues

func GetIssues(client *jira.Client, searchString string) (map[string]jira.Issue, error)

func GetPlanningLabels

func GetPlanningLabels(issue *jira.Issue) (sets.String, error)

func GetSnapshots

func GetSnapshots(cmd *cobra.Command) ([]string, error)

func WriteIssues

func WriteIssues(cmd *cobra.Command, issues map[string]jira.Issue) error

Types

type IssueInfo

type IssueInfo struct {
	Summary        string   `json:"summary"`
	Status         string   `json:"status"`
	Key            string   `json:"key"`
	PlanningLabels []string `json:"planninglabels"`
	FixedVersions  []string `json:"fixedversions"`
}

func GetIssuesInfo

func GetIssuesInfo(client *jira.Client, issues []string) ([]IssueInfo, error)

type Issues

type Issues struct {
	Date   time.Time
	Issues map[string]jira.Issue
}

type JiraDiffData

type JiraDiffData struct {
	NewDate string      `json:"newdate"`
	OldDate string      `json:"olddate"`
	Added   []IssueInfo `json:"added"`
	Removed []IssueInfo `json:"removed"`
}

type OpenShiftPlanning

type OpenShiftPlanning []OpenShiftPlanningLabel

type OpenShiftPlanningLabel

type OpenShiftPlanningLabel map[string]string

Jump to

Keyboard shortcuts

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