client

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package client implements a JIRA REST API client.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOAuth2Config

func GetOAuth2Config(auth *config.OAuth2) *oauth2.Config

GetOAuth2Config gets an OAuth2 Config object configured for Atlassian Jira Cloud.

func UploadWorklogs

func UploadWorklogs(ctx context.Context, jiraURL string,
	issueWorklogs map[string][]parse.Worklog, dayOffset int, dryRun bool,
	basicAuth bool) error

UploadWorklogs uploads the given worklogs to Jira, with the given day offset (e.g. -1 == yesterday).

func Worklogs added in v0.11.0

func Worklogs(ctx context.Context, log *slog.Logger, jiraURL string,
	since time.Time, authorName string,
	basicAuth bool) (map[string][]jira.WorklogRecord, error)

Worklogs returns the worklogs since the given time.

Types

This section is empty.

Jump to

Keyboard shortcuts

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