Documentation
¶
Overview ¶
Jira is a program to interact with Jira issues from the Acme editor. Projects, issues and comments are presented as a virtual read-only filesystem (using package io/fs) which can be browsed in the usual way Acme handles filesystems served by the host system.
The filesystem root holds project directories. Within each project are the project's issues, one directory entry per issue. The filepaths for issues TEST-1, TEST-2, and WEB-27 would be:
TEST/1 TEST/2 WEB/27
Each issue directory has a file named "issue" holding a textual representation of the issue and a listing of comments. For example, TEST/1/issue.
Comments are available as numbered files alongside the issue file. Comment 69 of issue TEST-420 can be accessed at TEST/420/69.
https:developer.atlassian.com/cloud/jira/platform/rest/v2/ https:jira.atlassian.com/rest/api/2/issue/JRA-9
Index ¶
- func CreateComment(APIRoot, issueKey string, body io.Reader) error
- type Client
- func (c *Client) CheckIssue(name string) (bool, error)
- func (c *Client) Comment(ikey, id string) (*Comment, error)
- func (c *Client) Issue(name string) (*Issue, error)
- func (c *Client) Issues(project string) ([]Issue, error)
- func (c *Client) PostComment(issueKey string, body io.Reader) error
- func (c *Client) Project(name string) (*Project, error)
- func (c *Client) Projects() ([]Project, error)
- func (c *Client) SearchIssues(query string) ([]Issue, error)
- type Comment
- type FS
- type Issue
- type Project
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Comment ¶
type Comment struct { ID string `json:"id"` // TODO(otl): int? URL string `json:"self"` Body string `json:"body"` Created time.Time `json:"created"` Updated time.Time `json:"updated"` Author User `json:"author"` UpdateAuthor User `json:"updateAuthor"` }
func (*Comment) UnmarshalJSON ¶
type Issue ¶
type Issue struct { ID string // TODO(otl): int? URL string Key string Reporter User Assignee User Summary string Status struct { Name string `json:"name"` } `json:"status"` Description string Project Project Created time.Time Updated time.Time Comments []Comment Links []Issue Subtasks []Issue }