Documentation ¶
Index ¶
- type Client
- func (client Client) CreateComment(ctx context.Context, issueID string, comment string) error
- func (client Client) CreateIssue(ctx context.Context, issue Issue) (string, error)
- func (client Client) GetCustomFields(ctx context.Context) ([]CustomField, error)
- func (client Client) GetIssue(ctx context.Context, issueID string) (IssueResp, error)
- func (client Client) GetIssueTypes(ctx context.Context, projectKey string) ([]IssueType, error)
- func (client Client) GetPriorities(ctx context.Context) ([]IssuePriority, error)
- func (client Client) UpdateIssue(ctx context.Context, issueID string, customFields map[string]interface{}) error
- type CustomField
- type Issue
- type IssuePriority
- type IssueResp
- type IssueType
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
}
Client 用于操作 jira 的客户端对象
func (Client) CreateComment ¶
CreateComment 创建一个评论
func (Client) CreateIssue ¶
CreateIssue create a jira issue
func (Client) GetCustomFields ¶
func (client Client) GetCustomFields(ctx context.Context) ([]CustomField, error)
GetCustomFields 获取所有的自定义字段
func (Client) GetIssueTypes ¶
GetIssueTypes return all issue types for a project
func (Client) GetPriorities ¶
func (client Client) GetPriorities(ctx context.Context) ([]IssuePriority, error)
GetPriorities return all priorities supported by jira
type CustomField ¶
type CustomField struct { ID string `json:"id"` Name string `json:"name"` Type string `json:"type"` }
CustomField 自定义字段
type Issue ¶
type Issue struct { CustomFields map[string]interface{} `json:"custom_fields"` ProjectKey string `json:"project_key"` Summary string `json:"summary"` Description string `json:"description"` IssueType string `json:"issue_type"` Priority string `json:"priority"` Assignee string `json:"assignee"` }
Issue 一个 Jira Issue
type IssuePriority ¶
IssuePriority is a jira issue priority object
Click to show internal directories.
Click to hide internal directories.