api

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApiError

func ApiError(err error) error

func AquireCookie added in v0.1.1

func AquireCookie(host string, user string, password string) (map[string]string, error)

func DoTransition added in v0.1.5

func DoTransition(host string, issueID string, transitionName string) (*jira.Status, error)

func FindUsers

func FindUsers(host string, username string) ([]jira.User, error)

func GetFilter

func GetFilter(host string, filterID int) (*jira.Filter, error)

func GetIssue

func GetIssue(host string, issueID string, opts *jira.GetQueryOptions) (*jira.Issue, error)

func GetIssueTransitions added in v0.1.5

func GetIssueTransitions(host string, issueId string) ([]jira.Transition, error)

func GetProject added in v0.1.1

func GetProject(host string, project string) (*jira.Project, error)

func ListComponents

func ListComponents(host string, project string) ([]jira.ProjectComponent, error)

func ListFilters

func ListFilters(host string) ([]*jira.Filter, error)

func ListIssueTypes

func ListIssueTypes(host string, project string) ([]jira.IssueType, error)

func ListIssues

func ListIssues(opts *ListIssuesOptions) ([]jira.Issue, error)

func ListPriorities

func ListPriorities(host string) ([]jira.Priority, error)

func ListProjectCategories added in v0.1.3

func ListProjectCategories(host string) ([]jira.ProjectCategory, error)

func ListResolutions

func ListResolutions(host string) ([]jira.Resolution, error)

func ListStatusCategories

func ListStatusCategories(host string) ([]jira.StatusCategory, error)

func ListStatuses

func ListStatuses(host string) ([]jira.Status, error)

func NewClient

func NewClient(host string) (*jira.Client, error)

func String

func String(s string) *string

Types

type ActivityStream added in v0.1.5

type ActivityStream struct {
	XMLName xml.Name `xml:"feed"`
	Entry   []struct {
		Title   string `xml:"title"`
		Content string `xml:"content"`
		Author  struct {
			Name string `xml:"name"`
		} `xml:"author"`
		Updated  string `xml:"updated"`
		Category struct {
			Term string `xml:"term,attr"`
		} `xml:"category"`
		Object struct {
			Title   string `xml:"title"`
			Summary string `xml:"summary"`
		} `xml:"object"`
	} `xml:"entry"`
}

func ListActivities added in v0.1.5

func ListActivities(host string, project string) (*ActivityStream, error)

type ListIssuesOptions

type ListIssuesOptions struct {
	Host              string
	Project           []string
	Type              []string
	Status            []string
	NotStatus         []string
	StatusCategory    []string
	NotStatusCategory []string
	Assignee          []string
	Component         []string
	Label             []string
	Priority          []string
	Resolution        []string
	Fields            []string
	Filter            int
	Jql               string
	Query             string
	Limit             int
}

func (*ListIssuesOptions) ToJql

func (o *ListIssuesOptions) ToJql() (string, error)

type ListProjectOptions added in v0.1.3

type ListProjectOptions struct {
	Category []string
}

type ProjectListEntry added in v0.1.5

type ProjectListEntry struct {
	Expand          string               `json:"expand" structs:"expand"`
	Self            string               `json:"self" structs:"self"`
	ID              string               `json:"id" structs:"id"`
	Key             string               `json:"key" structs:"key"`
	Name            string               `json:"name" structs:"name"`
	AvatarUrls      jira.AvatarUrls      `json:"avatarUrls" structs:"avatarUrls"`
	ProjectTypeKey  string               `json:"projectTypeKey" structs:"projectTypeKey"`
	ProjectCategory jira.ProjectCategory `json:"projectCategory,omitempty" structs:"projectsCategory,omitempty"`
	IssueTypes      []jira.IssueType     `json:"issueTypes,omitempty" structs:"issueTypes,omitempty"`
}

func ListProjects

func ListProjects(host string, category []string) ([]ProjectListEntry, error)

Jump to

Keyboard shortcuts

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