jira

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2026 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 struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(options Options) Client

func (Client) GetIssue

func (client Client) GetIssue(ctx context.Context, credentials projectintegrations.Credentials, issueIDOrKey string, fields []string) (IssueResponse, error)

func (Client) SearchIssues

func (client Client) SearchIssues(ctx context.Context, credentials projectintegrations.Credentials, request SearchRequest) (SearchResponse, error)

type IssueResponse

type IssueResponse struct {
	Raw json.RawMessage
}

type Options

type Options struct {
	BaseURL    string
	HTTPClient *http.Client
	Timeout    time.Duration
}

type Poller

type Poller struct {
	Client Client
}

func NewPoller

func NewPoller(client Client) Poller

type SearchRequest

type SearchRequest struct {
	JQL           string   `json:"jql,omitempty"`
	Fields        []string `json:"fields,omitempty"`
	MaxResults    int      `json:"maxResults,omitempty"`
	NextPageToken string   `json:"nextPageToken,omitempty"`
}

type SearchResponse

type SearchResponse struct {
	Issues        []json.RawMessage `json:"issues"`
	NextPageToken string            `json:"nextPageToken,omitempty"`
}

Jump to

Keyboard shortcuts

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