Documentation ¶
Index ¶
- Constants
- type BuildInfo
- type Channel
- type DMYDateString
- type Duration
- type Issue
- type Issues
- func (ii Issues) FilterByStatus(statuses ...string) Issues
- func (ii Issues) Keys() []string
- func (ii Issues) Stats(workingHoursPerDay, workingDaysPerWeek float32) gojira.IssuesStats
- func (ii Issues) TSRHistogramSets(name string) *histogram.HistogramSets
- func (ii Issues) TSRTable(name string) table.Table
- func (ii Issues) TSRWriteCSV(filename string) error
- type IssuesSet
- func (set *IssuesSet) Add(issues ...Issue) error
- func (set *IssuesSet) AddFromAPI(issues ...jira.Issue) error
- func (set *IssuesSet) AggregateTimeEstimate() int64
- func (set *IssuesSet) AggregateTimeOriginalEstimate() int64
- func (set *IssuesSet) AggregateTimeRemainingEstimate() int64
- func (set *IssuesSet) AggregateTimeSpent() int64
- func (set *IssuesSet) Keys() []string
- func (set *IssuesSet) ReadFile(filename string) error
- func (set *IssuesSet) TSRHistogramSets(name string) *histogram.HistogramSets
- func (set *IssuesSet) TSRTable(name string) table.Table
- func (set *IssuesSet) TSRWriteCSV(filename string) error
- func (set *IssuesSet) TSRWriteXLSX(filename, sheetname string) error
- func (set *IssuesSet) Table(baseURL string) table.Table
- type Label
- type Project
- type ProjectMeta
- type Projects
- type ProjectsAPIResponse
- type ProjectsMetasMap
- type RFC1123ZString
- type Simple
- type Status
- type StatusCategory
- type User
- type XML
Constants ¶
View Source
const DMYDateFormat = "_2-01-2006"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildInfo ¶
type BuildInfo struct { Version string `xml:"version"` BuildNumber int64 `xml:"build-number"` BuildDate DMYDateString `xml:"build-date"` }
type DMYDateString ¶
type DMYDateString string
type Issue ¶
type Issue struct { Type Simple `xml:"type"` Title string `xml:"title"` Assignee User `xml:"assignee"` Description string `xml:"description"` FixVersion string `xml:"fixVersion"` Link string `xml:"link"` Key Simple `xml:"key"` Project Project `xml:"project"` Reporter User `xml:"reporter"` Resolution Simple `xml:"resolution"` Status Status `xml:"status"` Summary string `xml:"summary"` TimeEstimate Duration `xml:"timeestimate"` TimeOriginalEstimate Duration `xml:"timeoriginalestimate"` TimeSpent Duration `xml:"timespent"` AggregateTimeEstimate Duration `xml:"aggregatetimeestimate"` AggregateTimeOriginalEstimate Duration `xml:"aggregatetimeoriginalestimate"` AggregateTimeRemainingEstimate Duration `xml:"aggregatetimeremainingestimate"` AggregateTimeSpent Duration `xml:"aggregatetimespent"` Labels []Label `xml:"labels"` Created RFC1123ZString `xml:"created"` // RFC1123Z Updated RFC1123ZString `xml:"updated"` // RFC1123Z Resolved RFC1123ZString `xml:"resolved"` // RFC1123Z Votes int `json:"votes"` Watches int `json:"watches"` }
func IssueFromAPI ¶
type Issues ¶
type Issues []Issue
func (Issues) FilterByStatus ¶
func (Issues) Stats ¶
func (ii Issues) Stats(workingHoursPerDay, workingDaysPerWeek float32) gojira.IssuesStats
func (Issues) TSRHistogramSets ¶
func (ii Issues) TSRHistogramSets(name string) *histogram.HistogramSets
TSRHistogramSets returns a `*histogram.HistogramSets` for Type, Status and Resolution.
func (Issues) TSRWriteCSV ¶
TSRWriteCSV writes a CSV file for Type, Status and Resolution.
type IssuesSet ¶
func NewIssuesSet ¶
func (*IssuesSet) AggregateTimeEstimate ¶
func (*IssuesSet) AggregateTimeOriginalEstimate ¶
func (*IssuesSet) AggregateTimeRemainingEstimate ¶
func (*IssuesSet) AggregateTimeSpent ¶
func (*IssuesSet) TSRHistogramSets ¶
func (set *IssuesSet) TSRHistogramSets(name string) *histogram.HistogramSets
TSRHistogramSets returns a `*histogram.HistogramSets` for Type, Status and Resolution.
func (*IssuesSet) TSRWriteCSV ¶
TSRWriteCSV writes a CSV file for Type, Status and Resolution.
func (*IssuesSet) TSRWriteXLSX ¶
TSRWriteCSV writes a CSV file for Type, Status and Resolution.
type Project ¶
type ProjectMeta ¶
type Projects ¶
func (Projects) ProjectsMetasMap ¶
func (pp Projects) ProjectsMetasMap() ProjectsMetasMap
type ProjectsAPIResponse ¶
type ProjectsAPIResponse struct { Self string `json:"self"` NextPage string `json:"nextPage"` MaxResults int `json:"maxResults"` StartAt int `json:"startAt"` Total int `json:"total"` IsLast bool `json:"isLast"` Values Projects `json:"values"` }
func NewProjectsAPIResponseFile ¶
func NewProjectsAPIResponseFile(filename string) (ProjectsAPIResponse, error)
type ProjectsMetasMap ¶
type ProjectsMetasMap struct {
Data map[string]ProjectMeta
}
type RFC1123ZString ¶
type RFC1123ZString string
func RFC1123ZStringJiraTime ¶
func RFC1123ZStringJiraTime(t jira.Time) RFC1123ZString
type StatusCategory ¶
type XML ¶
type XML struct {
Channel Channel `xml:"channel"`
}
func ReadFileWithDate ¶
ReadFileWithDate returns the file and the generation date.
Click to show internal directories.
Click to hide internal directories.