Documentation ¶
Index ¶
- Variables
- func AddComment(taskKey string, comment string) error
- func Assign(taskKey string, user string) error
- func Attach(issueKey string, filename string) error
- func DoTransition(taskKey string, transitionName string) error
- func Edit(issue *JiraIssue) error
- func EditComment(taskKey string, commentId string, comment *Comment) error
- func FindRCFile() string
- func FlagIssue(taskKeys []string, flg bool) error
- func LinkIssue(params []string) error
- func LogWork(taskKey string, workAmount string) error
- func PrettySeconds(seconds int) string
- type AllowedValue
- type Attachment
- type Author
- type Comment
- type CommentColl
- type CreateMeta
- type EditMeta
- type FieldSpec
- type Fields
- type IssueLink
- type IssueType
- type JiraClient
- func (j *JiraClient) Do(req *http.Request) (*http.Response, error)
- func (j *JiraClient) DoEvenLess(req *http.Request) (*http.Response, error)
- func (j *JiraClient) DoLess(req *http.Request) (*http.Response, error)
- func (j *JiraClient) Get(path string) (*http.Response, error)
- func (j *JiraClient) Post(path string, payload io.Reader) (*http.Response, error)
- func (j *JiraClient) Put(path string, payload io.Reader) (*http.Response, error)
- type JiraIssue
- type LinkType
- type Priority
- type Project
- type Schema
- type Search
- type Status
- type TimeTracking
- type Transition
- type Worklog
- type Worklogs
Constants ¶
This section is empty.
Variables ¶
View Source
var CommentIdSeparator = "~"
View Source
var Verbose *bool
Functions ¶
func AddComment ¶
func DoTransition ¶
func FindRCFile ¶
func FindRCFile() string
func PrettySeconds ¶
Types ¶
type AllowedValue ¶
type AllowedValue struct { Id string `json:"id"` Self string `json:"self"` Value string `json:"value"` Name string `json:"name"` }
func (*AllowedValue) String ¶
func (a *AllowedValue) String() string
type Attachment ¶
func (*Attachment) String ¶
func (a *Attachment) String() string
type Comment ¶
type CommentColl ¶
type CommentColl struct {
Comments []Comment
}
type CreateMeta ¶
type CreateMeta struct {
Projects []*Project
}
func GetCreateMeta ¶
func GetCreateMeta(projectKey, issueType string) (*CreateMeta, error)
type Fields ¶
type Fields struct { *IssueType `json:"issuetype,omitempty"` Assignee *Author `json:",omitempty"` Project *Project `json:"project,omitempty"` Summary string `json:"summary,omitempty"` Description string `json:"description,omitempty"` Comment *CommentColl `json:"comment,omitempty"` Parent *JiraIssue `json:",omitempty"` Status *Status `json:",omitempty"` TimeTracking *TimeTracking `json:"timetracking,omitempty"` Attachment []*Attachment `json:"attachment,omitempty"` IssueLinks []*IssueLink `json:"issueLinks,omitempty"` Priority *Priority `json:",omitempty"` Worklog *Worklogs `json:"worklog,omitempty"` ExtraFields map[string]interface{} `json:"-"` // contains filtered or unexported fields }
func (*Fields) PrettyOriginalEstimate ¶
func (*Fields) PrettyRemaining ¶
func (*Fields) UnmarshalJSON ¶
type IssueLink ¶
type IssueType ¶
type IssueType struct { Name string `json:"name"` IconURL string `json:",omitempty"` Fields map[string]*FieldSpec }
func (*IssueType) RangeFieldSpecs ¶
type JiraClient ¶
func NewJiraClient ¶
func NewJiraClient(jiraRoot string) *JiraClient
func (*JiraClient) DoEvenLess ¶
type JiraIssue ¶
type JiraIssue struct { Key string `json:"key,omitempty"` Fields *Fields `json:"fields,omitempty"` Transitions []*Transition `json:"transitions,omitempty"` EditMeta *EditMeta `json:"editmeta,omitempty"` }
func (*JiraIssue) MarshalJSON ¶
func (*JiraIssue) PrintExtraFields ¶
func (*JiraIssue) UnmarshalJSON ¶
type TimeTracking ¶
type Transition ¶
Click to show internal directories.
Click to hide internal directories.