jirahttpclient

package
v0.0.0-...-f10ad04 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JiraCommentRequest

type JiraCommentRequest struct {
	Body string `json:"body"`
}

type JiraHttpClient

type JiraHttpClient struct {
	// contains filtered or unexported fields
}

func NewJiraHttpClient

func NewJiraHttpClient(httpClient *http.Client, url string, username string, password string) JiraHttpClient

func (*JiraHttpClient) AddComment

func (client *JiraHttpClient) AddComment(ctx context.Context, text string, idIssue string) error

func (*JiraHttpClient) CreateTask

func (client *JiraHttpClient) CreateTask(ctx context.Context, task JiraTaskCreationRequest) (string, string, error)

type JiraTaskCreationFields

type JiraTaskCreationFields struct {
	Project     JiraTaskCreationProject   `json:"project"`
	Summary     string                    `json:"summary"`
	Description string                    `json:"description"`
	IssueType   JiraTaskCreationIssueType `json:"issuetype"`
}

type JiraTaskCreationIssueType

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

type JiraTaskCreationProject

type JiraTaskCreationProject struct {
	Key string `json:"key"`
}

type JiraTaskCreationRequest

type JiraTaskCreationRequest struct {
	Fields JiraTaskCreationFields `json:"fields"`
}

type JiraTaskCreationResponse

type JiraTaskCreationResponse struct {
	Id   string `json:"id"`
	Key  string `json:"key"`
	Self string `json:"self"`
}

Jump to

Keyboard shortcuts

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