jira

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

README

jira - WIP

A bonzai branch to manipulate jira API

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &Z.Cmd{
	Name:        `jira`,
	Description: helpdoc,
	Commands:    []*Z.Cmd{help.Cmd, progressCmd, reviewCmd, viewCmd},
}
View Source
var Transitions = Transition{
	Backlog:   11,
	ReadyToDo: 21,
	Progress:  31,
	Done:      41,
	Review:    51,
	Homol:     81,
}

Functions

func AutoAssignTicket

func AutoAssignTicket(issueKey string) error

func MoveTicketStatus

func MoveTicketStatus(issueKey string, status int) error

Types

type AssignTicketBody

type AssignTicketBody struct {
	AccountID string `json:"accountId"`
}

type GetTicketResponse

type GetTicketResponse struct {
	Fields struct {
		Title       string `json:"summary"`
		Description string `json:"description"`
	} `json:"fields"`
}

func GetTicket

func GetTicket(issueKey string) (*GetTicketResponse, error)

type MoveTicketBody

type MoveTicketBody struct {
	Transition TransitionBody `json:"transition"`
}

type Transition

type Transition struct {
	Backlog   int
	ReadyToDo int
	Progress  int
	Done      int
	Review    int
	Homol     int
}

type TransitionBody

type TransitionBody struct {
	Id int `json:"id"`
}

Directories

Path Synopsis
cmd
jira command

Jump to

Keyboard shortcuts

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