Documentation ¶
Index ¶
- Variables
- func FindClosestParentPath(fileName string) (string, error)
- func FindParentPaths(fileName string) []string
- func RunTemplate(templateContent string, data interface{}, out io.Writer) error
- type Cli
- func (c *Cli) Browse(issue string) error
- func (c *Cli) CmdAssign(issue string, user string) error
- func (c *Cli) CmdBlocks(blocker string, issue string) error
- func (c *Cli) CmdComment(issue string) error
- func (c *Cli) CmdComponent(action string, project string, name string, desc string, lead string) error
- func (c *Cli) CmdComponents(project string) error
- func (c *Cli) CmdCreate() error
- func (c *Cli) CmdCreateMeta() error
- func (c *Cli) CmdDups(duplicate string, issue string) error
- func (c *Cli) CmdEdit(issue string) error
- func (c *Cli) CmdEditMeta(issue string) error
- func (c *Cli) CmdExportTemplates() error
- func (c *Cli) CmdFields() error
- func (c *Cli) CmdIssueLinkTypes() error
- func (c *Cli) CmdIssueTypes() error
- func (c *Cli) CmdLabels(action string, issue string, labels []string) error
- func (c *Cli) CmdList() error
- func (c *Cli) CmdLogin() error
- func (c *Cli) CmdLogout() error
- func (c *Cli) CmdRankAfter(issue, after string) error
- func (c *Cli) CmdRankBefore(issue, before string) error
- func (c *Cli) CmdRequest(uri, content string) (err error)
- func (c *Cli) CmdTransition(issue string, trans string) error
- func (c *Cli) CmdTransitionMeta(issue string) error
- func (c *Cli) CmdTransitions(issue string) error
- func (c *Cli) CmdView(issue string) error
- func (c *Cli) CmdVote(issue string, up bool) error
- func (c *Cli) CmdWatch(issue string, watcher string, remove bool) error
- func (c *Cli) CmdWorklog(action string, issue string) error
- func (c *Cli) CmdWorklogs(issue string) error
- func (c *Cli) FindIssues() (interface{}, error)
- func (c *Cli) GetOptBool(optName string, dflt bool) bool
- func (c *Cli) GetOptString(optName string, dflt string) string
- func (c *Cli) GetTemplate(name string) string
- func (c *Cli) RankIssue(issue, target string, order RankOrder) error
- func (c *Cli) SaveData(data interface{}) error
- func (c *Cli) ValidTransitions(issue string) (jiradata.Transitions, error)
- func (c *Cli) ViewIssue(issue string) (interface{}, error)
- func (c *Cli) ViewIssueWorkLogs(issue string) (interface{}, error)
- type NoChangesFound
- type RankOrder
- type Transport
Constants ¶
This section is empty.
Variables ¶
var ( // VERSION is the go-jira library version VERSION string )
Functions ¶
func FindClosestParentPath ¶
FindClosestParentPath finds the path that matches the given fileName path that is closest to the current working directory
func FindParentPaths ¶
FindParentPaths will find all available paths from the current path up to the root that matches the given fileName path
Types ¶
type Cli ¶
type Cli struct {
// contains filtered or unexported fields
}
Cli is go-jira client object
func (*Cli) CmdBlocks ¶
CmdBlocks will update the given issue as being "blocked" by the given blocker
func (*Cli) CmdComment ¶
CmdComment will open up editor with "comment" template and submit YAML output to jira
func (*Cli) CmdComponent ¶ added in v0.1.0
func (c *Cli) CmdComponent(action string, project string, name string, desc string, lead string) error
CmdComponent will add a new component to given project
func (*Cli) CmdComponents ¶ added in v0.1.0
CmdComponents sends component data for given project and sends to the "components" template
func (*Cli) CmdCreate ¶
CmdCreate sends the create-metadata to the "create" template for editing, then will parse the edited document as YAML and submit the document to jira.
func (*Cli) CmdCreateMeta ¶
CmdCreateMeta sends the 'create' metadata for the given project & issuetype and sends it to the 'createmeta' template
func (*Cli) CmdDups ¶
CmdDups will update the given issue as being a duplicate by the given dup issue and will attempt to resolve the dup issue
func (*Cli) CmdEdit ¶
CmdEdit will populate "edit" template with issue data and issue "editmeta" data. Then will parse yaml template and submit data to jira.
func (*Cli) CmdEditMeta ¶
CmdEditMeta will send issue 'edit' metadata to the "editmeta" template
func (*Cli) CmdExportTemplates ¶
CmdExportTemplates will export the default templates to the template directory.
func (*Cli) CmdIssueLinkTypes ¶
CmdIssueLinkTypes will send the issue link type data to the "issuelinktypes" template.
func (*Cli) CmdIssueTypes ¶
CmdIssueTypes will send issue 'create' metadata to the 'issuetypes'
func (*Cli) CmdRankAfter ¶ added in v0.1.8
CmdRankAfter rank issue after target issue
func (*Cli) CmdRankBefore ¶ added in v0.1.8
CmdRankBefore rank issue before target issue
func (*Cli) CmdRequest ¶
CmdRequest will use the given uri to make a request and potentially send provided content.
func (*Cli) CmdTransition ¶
CmdTransition will move state of the given issue to the given transtion
func (*Cli) CmdTransitionMeta ¶
CmdTransitionMeta will send available transition metadata to the "transmeta" template
func (*Cli) CmdTransitions ¶
CmdTransitions sends valid transtions for given issue to the "transitions" template
func (*Cli) CmdWatch ¶
CmdWatch will add the given watcher to the issue (or remove the watcher given the 'remove' flag)
func (*Cli) CmdWorklog ¶ added in v0.1.6
CmdWorklog will attempt to add (action=add) a worklog to the given issue. It will spawn the editor (unless --noedit isused) and post edited YAML content as JSON to the worklog endpoint
func (*Cli) CmdWorklogs ¶ added in v0.1.6
CmdWorklogs will get worklog data for given issue and sent to the "worklogs" template
func (*Cli) FindIssues ¶
FindIssues will return a list of issues that match the given options. If the "query" option is undefined it will generate a JQL query using any/all of the provide options: project, component, assignee, issuetype, watcher, reporter, sort Further it will restrict the fields being extracted from the jira response with the 'queryfields' option
func (*Cli) GetOptBool ¶ added in v0.1.0
GetOptBool will extract the boolean value from the Client object options otherwise return the provided default\
func (*Cli) GetOptString ¶ added in v0.1.0
GetOptString will extract the string from the Cli object options otherwise return the provided default
func (*Cli) GetTemplate ¶
GetTemplate will return the text/template for the given command name
func (*Cli) RankIssue ¶ added in v0.1.8
RankIssue will modify issue to have rank before or after the target issue
func (*Cli) ValidTransitions ¶ added in v0.1.4
ValidTransitions will return a list of valid transitions for given issue.
func (*Cli) ViewIssueWorkLogs ¶ added in v0.1.6
ViewIssueWorkLogs gets the worklog data for the given issue
type NoChangesFound ¶
type NoChangesFound struct{}
NoChangesFound is an error returned from when editing templates and no modifications were made while editing
func (NoChangesFound) Error ¶
func (f NoChangesFound) Error() string
type RankOrder ¶ added in v0.1.8
type RankOrder int
RankOrder type used to specify before/after ranking arguments to RankIssue
type Transport ¶ added in v0.1.8
type Transport struct {
// contains filtered or unexported fields
}