issue

package
v1.5.18 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FieldSummary     = "summary"
	FieldDescription = "description"
	FieldEpic        = "epic"
)

Variables

View Source
var (
	Fields = []string{
		"summary",
		"description",
		"epic",
	}
)

Functions

func Apply

func Apply(v *ApplyValue) ([]jira.Issue, error)

func BatchDelete

func BatchDelete(issueIDList []string)

func ChangeTransition

func ChangeTransition(issueID, transitionID string) error

func Create

func Create(issue *jira.Issue) (*jira.Issue, error)

func Delete

func Delete(issueID string) error

func Epic

func Epic() ([]jira.Issue, error)

func Export

func Export(issueSlice []*jira.Issue) error

func Label

func Label(i jira.Issue) string

func List

func List(op *Search) ([]jira.Issue, error)

func Options

func Options(issueList []jira.Issue) ([]string, map[string]jira.Issue)

func Show

func Show(issueID string) (*jira.Issue, error)

func TransitionList

func TransitionList(issueID string) ([]jira.Transition, error)

func Update

func Update(issue *jira.Issue) (*jira.Issue, error)

func UpdateAssignee

func UpdateAssignee(issueID string, assignee *jira.User) (*jira.Issue, error)

func ViewTable

func ViewTable(issues []jira.Issue)

Types

type ApplyValue

type ApplyValue struct {
	Type        string        `yaml:"type,omitempty"`
	Key         string        `yaml:"key,omitempty"`
	Labels      []string      `yaml:"labels,omitempty"`
	Summary     string        `yaml:"summary,omitempty"`
	Description string        `yaml:"description,omitempty"`
	Epic        string        `yaml:"epic,omitempty"`
	Assignee    string        `yaml:"assignee,omitempty"`
	Subtasks    []*ApplyValue `yaml:"subtasks,omitempty"`
}
type Search struct {
	AffectedVersion string   `json:"AffectedVersion"`
	Assignee        string   `json:"assignee"`
	Comment         string   `json:"comment"`
	Component       string   `json:"component"`
	Created         string   `json:"Created"`
	Creator         string   `json:"Creator"`
	Description     string   `json:"description"`
	Due             string   `json:"due"`
	EpicLink        string   `json:"epic link"`
	Filter          string   `json:"filter"`
	IssueKey        string   `json:"issueKey"`
	Summary         string   `json:"summary"`
	Labels          []string `json:"labels"`
	Resolution      string   `json:"resolution"`
	Parent          string   `json:"parent"`
	Project         string   `json:"project"`
	Status          string   `json:"status"`
	Type            string   `json:"type"`
	Updated         string   `json:"updated"`
	Reporter        string   `json:"reporter"`
}

Jump to

Keyboard shortcuts

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