api

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Client

func Client(config jira.Config) *jira.Client

Client initializes and returns jira client.

func DefaultClient added in v1.3.0

func DefaultClient(debug bool) *jira.Client

DefaultClient returns default jira client.

func ProxyAssignIssue added in v0.1.0

func ProxyAssignIssue(c *jira.Client, key string, user *jira.User, def string) error

ProxyAssignIssue uses either a v2 or v3 version of the PUT /issue/{key}/assignee endpoint to assign an issue to the user. Defaults to v3 if installation type is not defined in the config.

func ProxyCreate added in v0.1.0

func ProxyCreate(c *jira.Client, cr *jira.CreateRequest) (*jira.CreateResponse, error)

ProxyCreate uses either a v2 or v3 version of the Jira POST /issue endpoint to create an issue based on configured installation type. Defaults to v3 if installation type is not defined in the config.

func ProxyGetIssue added in v0.1.0

func ProxyGetIssue(c *jira.Client, key string, opts ...filter.Filter) (*jira.Issue, error)

ProxyGetIssue uses either a v2 or v3 version of the Jira GET /issue/{key} endpoint to fetch the issue details based on configured installation type. Defaults to v3 if installation type is not defined in the config.

func ProxyGetIssueRaw added in v1.5.2

func ProxyGetIssueRaw(c *jira.Client, key string) (string, error)

ProxyGetIssueRaw executes the same request as ProxyGetIssue but returns raw API response body string.

func ProxySearch added in v0.1.0

func ProxySearch(c *jira.Client, jql string, from, limit uint) (*jira.SearchResult, error)

ProxySearch uses either a v2 or v3 version of the Jira GET /search endpoint to search for the relevant issues based on configured installation type. Defaults to v3 if installation type is not defined in the config.

func ProxyTransitions added in v0.1.0

func ProxyTransitions(c *jira.Client, key string) ([]*jira.Transition, error)

ProxyTransitions uses either v2 or v3 version of the GET /issue/{key}/transitions endpoint to fetch valid transitions for an issue. Defaults to v3 if installation type is not defined in the config.

func ProxyUserSearch added in v0.1.0

func ProxyUserSearch(c *jira.Client, opts *jira.UserSearchOptions) ([]*jira.User, error)

ProxyUserSearch uses either v2 or v3 version of the GET /user/assignable/search endpoint to search for the users assignable to the given issue. Defaults to v3 if installation type is not defined in the config.

func ProxyWatchIssue added in v1.4.0

func ProxyWatchIssue(c *jira.Client, key string, user *jira.User) error

ProxyWatchIssue uses either a v2 or v3 version of the PUT /issue/{key}/watchers endpoint to assign an issue to the user. Defaults to v3 if installation type is not defined in the config.

Types

This section is empty.

Jump to

Keyboard shortcuts

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