jira

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2025 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package jira contains logic for working with Jira.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIResponseIssueGet

type APIResponseIssueGet struct {
	Fields APIResponseIssueGetFields `json:"fields"`
	Key    string                    `json:"key"`
}

GET /rest/api/3/issue/{issueIdOrKey}

type APIResponseIssueGetFields

type APIResponseIssueGetFields struct {
	Assignee  APIResponseIssueGetFieldsAssignee  `json:"assignee"`
	IssueType APIResponseIssueGetFieldsIssueType `json:"issuetype"`
	Priority  APIResponseIssueGetFieldsPriority  `json:"priority"`
	Project   APIResponseIssueGetFieldsPriority  `json:"project"`
	Reporter  APIResponseIssueGetFieldsReporter  `json:"reporter"`
	Status    APIResponseIssueGetFieldsStatus    `json:"status"`
	Summary   string                             `json:"summary"`
}

type APIResponseIssueGetFieldsAssignee

type APIResponseIssueGetFieldsAssignee struct {
	AvatarURLs   APIResponseIssueGetFieldsReporterAvatarURLs `json:"avatarUrls"`
	DisplayName  string                                      `json:"displayName"`
	EmailAddress string                                      `json:"emailAddress"`
}

type APIResponseIssueGetFieldsIssueType

type APIResponseIssueGetFieldsIssueType struct {
	IconURL string `json:"iconUrl"`
	Name    string `json:"name"`
}

type APIResponseIssueGetFieldsPriority

type APIResponseIssueGetFieldsPriority struct {
	Name    string `json:"name"`
	IconURL string `json:"iconUrl"`
}

type APIResponseIssueGetFieldsProject

type APIResponseIssueGetFieldsProject struct {
	Name string `json:"name"`
}

type APIResponseIssueGetFieldsReporter

type APIResponseIssueGetFieldsReporter struct {
	AvatarURLs   APIResponseIssueGetFieldsReporterAvatarURLs `json:"avatarUrls"`
	DisplayName  string                                      `json:"displayName"`
	EmailAddress string                                      `json:"emailAddress"`
}

type APIResponseIssueGetFieldsReporterAvatarURLs

type APIResponseIssueGetFieldsReporterAvatarURLs struct {
	FourtyEightByFourtyEight string `json:"48x48"`
}

type APIResponseIssueGetFieldsStatus

type APIResponseIssueGetFieldsStatus struct {
	Name string `json:"name"`
}

type APIResponseIssuePickerGet

type APIResponseIssuePickerGet struct {
	Sections []APIResponseIssuePickerGetSection `json:"sections"`
}

GET /rest/api/3/issue/picker

type APIResponseIssuePickerGetSection

type APIResponseIssuePickerGetSection struct {
	ID     string                                  `json:"id"`
	Issues []APIResponseIssuePickerGetSectionIssue `json:"issues"`
	Label  string                                  `json:"label"`
}

type APIResponseIssuePickerGetSectionIssue

type APIResponseIssuePickerGetSectionIssue struct {
	ID          int    `json:"id"`
	Key         string `json:"key"`
	Img         string `json:"img"`
	SummaryText string `json:"summaryText"`
}

type Service

type Service struct {
	// APIToken is the API token for authenticating to Jira.
	APIToken string

	// URL is the URL of the Jira instance.
	URL string

	// User is the user for authenticating to Jira.
	User string
}

Service is a service for interacting with Jira.

func NewService

func NewService(cfg config.Jira) (*Service, error)

NewService creates a new Service.

Jump to

Keyboard shortcuts

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