issue

package
v0.0.0-...-061f051 Latest Latest
Warning

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

Go to latest
Published: May 29, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidAuth             = errors.New("Invalid authentication")
	ErrNoIssueFieldsAreDefined = errors.New("No issue fields are defined")
)

Functions

func CreateIssue

func CreateIssue(spec Spec) (*jira.Issue, error)

Types

type ConnectionSpec

type ConnectionSpec struct {
	URL      string `spec:"url"`
	Username string `spec:"username"`
	Password string `spec:"password"`
}

type IssueFieldsSpec

type IssueFieldsSpec struct {
	Summary     string         `spec:"summary"`
	Description string         `spec:"description"`
	Type        *IssueTypeSpec `spec:"type"`
	Project     *ProjectSpec   `spec:"project"`
}

type IssueSpec

type IssueSpec struct {
	Fields       *IssueFieldsSpec  `spec:"fields"`
	CustomFields map[string]string `spec:"customFields"`
}

type IssueTypeSpec

type IssueTypeSpec struct {
	Name string `spec:"name"`
}

type ProjectSpec

type ProjectSpec struct {
	Key string `spec:"key"`
}

type Spec

type Spec struct {
	Connection *ConnectionSpec `spec:"connection"`
	Issue      *IssueSpec      `spec:"issue"`
}

Jump to

Keyboard shortcuts

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