jira

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2020 License: MPL-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

View Source
const MaxIssueTypeLength = 7
View Source
const MaxStatusNameLength = 14

Variables

This section is empty.

Functions

This section is empty.

Types

type Issue

type Issue struct {
	Expand string `json:"expand"`
	ID     string `json:"id"`
	Self   string `json:"self"`
	Key    string `json:"key"`

	IssueFields *IssueFields `json:"fields"`
}

type IssueFields

type IssueFields struct {
	Summary string `json:"summary"`

	IssueType   *IssueType   `json:"issuetype"`
	IssueStatus *IssueStatus `json:"status"`
}

type IssueStatus

type IssueStatus struct {
	ISelf        string `json:"self"`
	IDescription string `json:"description"`
	IName        string `json:"name"`
}

type IssueType

type IssueType struct {
	Self        string `json:"self"`
	ID          string `json:"id"`
	Description string `json:"description"`
	IconURL     string `json:"iconUrl"`
	Name        string `json:"name"`
	Subtask     bool   `json:"subtask"`
}

type SearchResult

type SearchResult struct {
	StartAt    int     `json:"startAt"`
	MaxResults int     `json:"maxResults"`
	Total      int     `json:"total"`
	Issues     []Issue `json:"issues"`
}

type Settings

type Settings struct {
	// contains filtered or unexported fields
}

func NewSettingsFromYAML

func NewSettingsFromYAML(name string, ymlConfig *config.Config, globalConfig *config.Config) *Settings

type Widget

type Widget struct {
	view.KeyboardWidget
	view.ScrollableWidget
	// contains filtered or unexported fields
}

func NewWidget

func NewWidget(app *tview.Application, pages *tview.Pages, settings *Settings) *Widget

func (*Widget) IssuesFor

func (widget *Widget) IssuesFor(username string, projects []string, jql string) (*SearchResult, error)

func (*Widget) Refresh

func (widget *Widget) Refresh()

func (*Widget) Render added in v0.10.0

func (widget *Widget) Render()

Jump to

Keyboard shortcuts

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