Documentation
¶
Index ¶
- Constants
- Variables
- func GetStatus(rule *StatusRule, input interface{}) string
- type Board
- type BoardIssue
- type BoardSprint
- type Issue
- type IssueAssignee
- type IssueChangelogs
- type IssueComment
- type IssueCustomArrayField
- type IssueLabel
- type IssueRelationship
- type IssueWorklog
- type Sprint
- type SprintIssue
- type StatusRule
Constants ¶
View Source
const ( BUG = "BUG" REQUIREMENT = "REQUIREMENT" INCIDENT = "INCIDENT" TASK = "TASK" // status TODO = "TODO" DONE = "DONE" IN_PROGRESS = "IN_PROGRESS" OTHER = "OTHER" )
Variables ¶
View Source
var ( BeforeSprint = "BEFORE_SPRINT" DuringSprint = "DURING_SPRINT" AfterSprint = "AFTER_SPRINT" )
Functions ¶
func GetStatus ¶
func GetStatus(rule *StatusRule, input interface{}) string
GetStatus compare the input with rule for return the enmu value of status
Types ¶
type Board ¶
type Board struct {
domainlayer.DomainEntity
Name string `gorm:"type:varchar(255)"`
Description string
Url string `gorm:"type:varchar(255)"`
CreatedDate *time.Time
Type string `gorm:"type:varchar(255)"`
}
type BoardIssue ¶
type BoardIssue struct {
BoardId string `gorm:"primaryKey;type:varchar(255)"`
IssueId string `gorm:"primaryKey;type:varchar(255)"`
common.NoPKModel
}
func (BoardIssue) TableName ¶
func (BoardIssue) TableName() string
type BoardSprint ¶
type BoardSprint struct {
common.NoPKModel
BoardId string `gorm:"primaryKey;type:varchar(255)"`
SprintId string `gorm:"primaryKey;type:varchar(255)"`
}
func (BoardSprint) TableName ¶
func (BoardSprint) TableName() string
type Issue ¶
type Issue struct {
domainlayer.DomainEntity
Url string `gorm:"type:varchar(255)"`
IconURL string `gorm:"type:varchar(255);column:icon_url"`
IssueKey string `gorm:"type:varchar(255)"`
Title string
Description string
EpicKey string `gorm:"type:varchar(255)"`
Type string `gorm:"type:varchar(100)"`
OriginalType string `gorm:"type:varchar(500)"`
Status string `gorm:"type:varchar(100)"`
OriginalStatus string `gorm:"type:varchar(100)"`
StoryPoint *float64
ResolutionDate *time.Time
CreatedDate *time.Time
UpdatedDate *time.Time
LeadTimeMinutes *uint
OriginalEstimateMinutes *int64
TimeSpentMinutes *int64
TimeRemainingMinutes *int64
CreatorId string `gorm:"type:varchar(255)"`
CreatorName string `gorm:"type:varchar(255)"`
AssigneeId string `gorm:"type:varchar(255)"`
AssigneeName string `gorm:"type:varchar(255)"`
ParentIssueId string `gorm:"type:varchar(255)"`
Priority string `gorm:"type:varchar(255)"`
Severity string `gorm:"type:varchar(255)"`
Urgency string `gorm:"type:varchar(255)"`
Component string `gorm:"type:varchar(255)"`
OriginalProject string `gorm:"type:varchar(255)"`
}
type IssueAssignee ¶
type IssueAssignee struct {
IssueId string `gorm:"primaryKey;type:varchar(255)"`
AssigneeId string `gorm:"primaryKey;type:varchar(255)"`
AssigneeName string `gorm:"type:varchar(255)"`
common.NoPKModel
}
func (IssueAssignee) TableName ¶
func (IssueAssignee) TableName() string
type IssueChangelogs ¶
type IssueChangelogs struct {
domainlayer.DomainEntity
// collected fields
IssueId string `gorm:"index;type:varchar(255)"`
AuthorId string `gorm:"type:varchar(255)"`
AuthorName string `gorm:"type:varchar(255)"`
FieldId string `gorm:"type:varchar(255)"`
FieldName string `gorm:"type:varchar(255)"`
OriginalFromValue string
OriginalToValue string
FromValue string
ToValue string
CreatedDate time.Time
}
func (IssueChangelogs) TableName ¶
func (IssueChangelogs) TableName() string
type IssueComment ¶
type IssueComment struct {
domainlayer.DomainEntity
IssueId string `gorm:"index"`
Body string
AccountId string `gorm:"type:varchar(255)"`
CreatedDate time.Time
UpdatedDate *time.Time
}
func (IssueComment) TableName ¶
func (IssueComment) TableName() string
type IssueCustomArrayField ¶
type IssueCustomArrayField struct {
IssueId string `gorm:"primaryKey;type:varchar(255)"`
FieldId string `gorm:"primaryKey;type:varchar(255)"`
FieldValue string `gorm:"primaryKey;type:varchar(255)"`
common.NoPKModel
}
func (IssueCustomArrayField) TableName ¶
func (IssueCustomArrayField) TableName() string
type IssueLabel ¶
type IssueLabel struct {
IssueId string `json:"id" gorm:"primaryKey;type:varchar(255);comment:This key is generated based on details from the original plugin"` // format: <Plugin>:<Entity>:<PK0>:<PK1>
LabelName string `gorm:"primaryKey;type:varchar(255)"`
common.NoPKModel
}
func (IssueLabel) TableName ¶
func (IssueLabel) TableName() string
type IssueRelationship ¶
type IssueRelationship struct {
SourceIssueId string `gorm:"primaryKey;type:varchar(255);index"`
TargetIssueId string `gorm:"primaryKey;type:varchar(255)"`
OriginalType string `gorm:"primaryKey;type:varchar(255)"`
common.NoPKModel
}
func (IssueRelationship) TableName ¶
func (IssueRelationship) TableName() string
type IssueWorklog ¶
type IssueWorklog struct {
domainlayer.DomainEntity
AuthorId string `gorm:"type:varchar(255)"`
Comment string
TimeSpentMinutes int
LoggedDate *time.Time
StartedDate *time.Time
IssueId string `gorm:"index;type:varchar(255)"`
}
func (IssueWorklog) TableName ¶
func (IssueWorklog) TableName() string
type Sprint ¶
type SprintIssue ¶
type SprintIssue struct {
common.NoPKModel
SprintId string `gorm:"primaryKey;type:varchar(255)"`
IssueId string `gorm:"primaryKey;type:varchar(255)"`
}
func (SprintIssue) TableName ¶
func (SprintIssue) TableName() string
Click to show internal directories.
Click to hide internal directories.