jira

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	LogTime(taskKey string, duration time.Duration, started time.Time, comment string) error
	GetAssignedIssues() ([]Issue, error)
}

type Issue

type Issue struct {
	Summary string `json:"summary"`
	Status  string `json:"status"`
	Key     string `json:"key"`
}

type JiraClient

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

func NewJiraClient

func NewJiraClient(cfgHandler configuration.ConfigurationHandler) *JiraClient

func (*JiraClient) GetAssignedIssues

func (c *JiraClient) GetAssignedIssues() ([]Issue, error)

func (*JiraClient) LogTime

func (c *JiraClient) LogTime(taskKey string, duration time.Duration, started time.Time, comment string) error

type SearchJql

type SearchJql struct {
	Fields     []string `json:"fields"`
	MaxResults int      `json:"maxResults"`
	JQL        string   `json:"jql"`
	StartAt    int      `json:"startAt"`
}

type Worklog

type Worklog struct {
	TimeSpent string `json:"timeSpent"`
	Started   string `json:"started"`
	Comment   string `json:"comment,omitempty"`
}

Jump to

Keyboard shortcuts

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