jira

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

README

jira - WIP

A bonzai branch to manipulate jira API

Instalation

curl -L https://github.com/cherryramatisdev/jira/releases/download/v0.0.1/jira-darwin-amd64 -o ./jira
curl -L https://github.com/cherryramatisdev/jira/releases/download/v0.0.1/jira-darwin-arm64 -o ./jira
curl -L https://github.com/cherryramatisdev/jira/releases/download/v0.0.1/jira-linux-amd64 -o ./jira
curl -L https://github.com/cherryramatisdev/jira/releases/download/v0.0.1/jira-windows-amd64.exe -o ./jira
chmod +x ./jira

For tab completion(only bash):

echo 'complete -C jira jira' > ~/.bashrc

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, homolCmd},
}
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

Jump to

Keyboard shortcuts

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