Versions in this module Expand all Collapse all v0 v0.3.1 Sep 4, 2026 v0.3.0 Jul 21, 2026 v0.2.0 Jul 21, 2026 v0.1.0 Jul 21, 2026 Changes in this version + const TestedServerVersion + func IsTestedServerVersion(version string) bool + type APIError struct + Message string + StatusCode int + Type string + func (e *APIError) Error() string + type Attachment struct + Disposition string + DownloadURL string + ID int + MIMEType string + Name string + Size int64 + ThumbnailURL string + type Client struct + func NewClient(config Config) (*Client, error) + func (c *Client) AddComment(ctx context.Context, taskID int, input CommentCreateInput) (Comment, error) + func (c *Client) CompleteSubtask(ctx context.Context, ref TaskRef, subtaskID int) (Subtask, error) + func (c *Client) CompleteTask(ctx context.Context, taskID int) (Task, error) + func (c *Client) CreateSubtask(ctx context.Context, ref TaskRef, input SubtaskCreateInput) (Subtask, error) + func (c *Client) CreateTask(ctx context.Context, projectID int, input TaskCreateInput) (Task, error) + func (c *Client) DownloadAttachment(ctx context.Context, attachment Attachment, target io.Writer) (DownloadResult, error) + func (c *Client) GetProject(ctx context.Context, projectID int) (Project, error) + func (c *Client) GetSubtask(ctx context.Context, ref TaskRef, subtaskID int) (Subtask, error) + func (c *Client) GetTask(ctx context.Context, ref TaskRef) (Task, error) + func (c *Client) GetUser(ctx context.Context, userID int) (User, error) + func (c *Client) Info(ctx context.Context) (Info, error) + func (c *Client) ListAttachments(ctx context.Context, ref TaskRef) ([]Attachment, error) + func (c *Client) ListComments(ctx context.Context, ref TaskRef) ([]Comment, error) + func (c *Client) ListProjects(ctx context.Context) ([]Project, error) + func (c *Client) ListSubtasks(ctx context.Context, ref TaskRef) ([]Subtask, error) + func (c *Client) ListTaskLists(ctx context.Context, projectID int) ([]TaskList, error) + func (c *Client) ListTasks(ctx context.Context, projectID int) ([]Task, error) + func (c *Client) ListUsers(ctx context.Context) ([]User, error) + func (c *Client) ReopenSubtask(ctx context.Context, ref TaskRef, subtaskID int) (Subtask, error) + func (c *Client) ReopenTask(ctx context.Context, taskID int) (Task, error) + func (c *Client) ResolveTaskRef(value string, projectID int) (TaskRef, error) + func (c *Client) TaskHistory(ctx context.Context, taskID int, verbose bool) ([]HistoryEntry, error) + func (c *Client) UpdateComment(ctx context.Context, commentID int, input CommentUpdateInput) (Comment, error) + func (c *Client) UpdateSubtask(ctx context.Context, ref TaskRef, subtaskID int, input SubtaskUpdateInput) (Subtask, error) + func (c *Client) UpdateTask(ctx context.Context, ref TaskRef, input TaskUpdateInput) (Task, error) + type Comment struct + Attachments []Attachment + Body string + BodyPlainText string + CreatedByID int + CreatedOn int64 + ID int + ParentID int + ParentType string + UpdatedOn int64 + type CommentCreateInput struct + Attachments []string + Body string + type CommentUpdateInput struct + Body string + type Config struct + BaseURL string + HTTPClient *http.Client + Token string + UserAgent string + type DownloadResult struct + ContentType string + Size int64 + type HistoryEntry struct + CreatedByEmail string + CreatedByID int + CreatedByName string + Modifications map[string][]any + Timestamp int64 + type Info struct + Application string + Tested bool + Version string + type Project struct + Body any + ID int + IsCompleted bool + IsTrashed bool + LeaderID int + Name string + type Subtask struct + AssigneeID int + CreatedOn int64 + DueOn any + ID int + IsCompleted bool + Name string + ProjectID int + TaskID int + UpdatedOn int64 + type SubtaskCreateInput struct + AssigneeID *int + DueOn *string + Name string + type SubtaskUpdateInput struct + AssigneeID *int + ClearAssignee bool + ClearDueOn bool + DueOn *string + Name *string + type Task struct + AssigneeID int + Attachments []Attachment + Body string + BodyPlainText string + Comments []Comment + CommentsCount int + CompletedSubtasks int + CreatedOn int64 + DueOn any + ID int + IsCompleted bool + IsImportant bool + IsTrashed bool + Name string + OpenSubtasks int + ProjectID int + Subtasks []Subtask + TaskList *TaskList + TaskListID int + TaskNumber int + TotalSubtasks int + UpdatedOn int64 + type TaskCreateInput struct + AssigneeID *int + Attachments []string + Body *string + DueOn *string + IsImportant *bool + Name string + TaskListID *int + type TaskList struct + ID int + IsCompleted bool + Name string + OpenTasks int + ProjectID int + type TaskRef struct + ProjectID int + TaskID int + func ParseTaskRef(value string, projectID int) (TaskRef, error) + type TaskUpdateInput struct + AssigneeID *int + Attachments []string + Body *string + ClearAssignee bool + ClearDueOn bool + ClearTaskList bool + DueOn *string + IsImportant *bool + Name *string + TaskListID *int + type Upload struct + Code string + MIMEType string + Name string + Size int64 + ThumbnailURL string + type User struct + DisplayName string + Email string + ID int + IsArchived bool + IsTrashed bool + ShortDisplayName string