Documentation
¶
Index ¶
- type Client
- func (c *Client) AddComment(ctx context.Context, key, body string) (*Comment, error)
- func (c *Client) BaseURL() string
- func (c *Client) CreateIssue(ctx context.Context, input *CreateIssueInput) (*Issue, error)
- func (c *Client) DeleteIssue(ctx context.Context, key string) error
- func (c *Client) GetIssue(ctx context.Context, key string) (*Issue, error)
- func (c *Client) GetMyself(ctx context.Context) (*User, error)
- func (c *Client) GetSubtasks(ctx context.Context, key string) ([]Issue, error)
- func (c *Client) GetTransitions(ctx context.Context, key string) ([]Transition, error)
- func (c *Client) ListComments(ctx context.Context, key string) ([]Comment, error)
- func (c *Client) SearchIssues(ctx context.Context, jql string, maxResults int) (*SearchResult, error)
- func (c *Client) TransitionIssue(ctx context.Context, key, statusName string) error
- func (c *Client) UpdateIssue(ctx context.Context, key string, fields map[string]any) error
- type Comment
- type CreateIssueInput
- type Issue
- type IssueFields
- type IssueType
- type Priority
- type Project
- type SearchResult
- type Status
- type Transition
- type User
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(cfg *config.AtlassianConfig) *Client
func (*Client) AddComment ¶
func (*Client) CreateIssue ¶
func (*Client) GetSubtasks ¶
func (*Client) GetTransitions ¶
func (*Client) ListComments ¶
func (*Client) SearchIssues ¶
func (*Client) TransitionIssue ¶
type CreateIssueInput ¶
type CreateIssueInput struct {
ProjectKey string `json:"projectKey"`
Summary string `json:"summary"`
IssueType string `json:"issueType"`
Description string `json:"description,omitempty"`
Assignee string `json:"assignee,omitempty"`
Priority string `json:"priority,omitempty"`
Labels []string `json:"labels,omitempty"`
CustomFields map[string]any `json:"customFields,omitempty"`
}
type Issue ¶
type Issue struct {
ID string `json:"id"`
Key string `json:"key"`
Self string `json:"self"`
Fields IssueFields `json:"fields"`
}
type IssueFields ¶
type IssueFields struct {
Summary string `json:"summary"`
Description string `json:"description"`
Status *Status `json:"status"`
IssueType *IssueType `json:"issuetype"`
Priority *Priority `json:"priority"`
Assignee *User `json:"assignee"`
Reporter *User `json:"reporter"`
Project *Project `json:"project"`
Created string `json:"created"`
Updated string `json:"updated"`
Labels []string `json:"labels"`
Subtasks []Issue `json:"subtasks"`
}
type SearchResult ¶
type Transition ¶
Click to show internal directories.
Click to hide internal directories.