task

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	URI             = "/api/1.0/tasks"
	ResourceSubtype = "default_task"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	Request Request `json:"data"`
}

type Request

type Request struct {
	ResourceSubtype string `json:"resource_subtype,omitempty"`
	Assignee        string `json:"assignee"`
	Name            string `json:"name"`
	Completed       bool   `json:"completed,omitempty"`
	DueOn           string `json:"due_on,omitempty"`
	Liked           bool   `json:"linked,omitempty"`
	// Notes refer to the content of each Ticket
	Notes        string            `json:"notes"`
	StartOn      string            `json:"start_on,omitempty"`
	CustomFields map[string]string `json:"custom_fields"`
	Projects     []string          `json:"projects"`
	Workspace    string            `json:"workspace"`

	TicketID   string `json:"-"`
	TicketType string `json:"-"`
	// contains filtered or unexported fields
}

func (Request) Create

func (r Request) Create() (resp *Response, err error)

func (*Request) GetPAToken

func (r *Request) GetPAToken() string

func (*Request) SetPAToken

func (r *Request) SetPAToken(token string)

type Response

type Response struct {
	ID             string `json:"gid"`
	Name           string `json:"name"`
	ResourceType   string `json:"resource_type"`
	AssigneeStatus string `json:"assignee_status"`
}

Jump to

Keyboard shortcuts

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