Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶ added in v0.12.0
type Account struct { Self string `json:"self"` Key string `json:"key"` Name string `json:"name"` EmailAddress string `json:"emailAddress"` AccountId string `json:"accountId"` AccountType string `json:"accountType"` AvatarUrls struct { Four8X48 string `json:"48x48"` Two4X24 string `json:"24x24"` One6X16 string `json:"16x16"` Three2X32 string `json:"32x32"` } `json:"avatarUrls"` DisplayName string `json:"displayName"` Active bool `json:"active"` Deleted bool `json:"deleted"` TimeZone string `json:"timeZone"` Locale string `json:"locale"` }
func (*Account) ToToolLayer ¶ added in v0.12.0
func (u *Account) ToToolLayer(connectionId uint64) *models.JiraAccount
type Board ¶
type Board struct { ID uint64 `json:"id"` Self string `json:"self"` Name string `json:"name"` Type string `json:"type"` Location *struct { ProjectId uint `json:"projectId"` DisplayName string `json:"displayName"` ProjectName string `json:"projectName"` ProjectKey string `json:"projectKey"` ProjectTypeKey string `json:"projectTypeKey"` AvatarURI string `json:"avatarURI"` Name string `json:"name"` } `json:"location"` }
type Changelog ¶
type Changelog struct { ID uint64 `json:"id,string"` Author Account `json:"author"` Created helper.Iso8601Time `json:"created"` Items []ChangelogItem `json:"items"` }
func (Changelog) ToToolLayer ¶
func (c Changelog) ToToolLayer(connectionId, issueId uint64, issueUpdated *time.Time) (*models.JiraIssueChangelogs, *models.JiraAccount)
type ChangelogItem ¶
type ChangelogItem struct { Field string `json:"field"` Fieldtype string `json:"fieldtype"` FromValue string `json:"from"` FromString string `json:"fromString"` ToValue string `json:"to"` ToString string `json:"toString"` }
func (ChangelogItem) ExtractUser ¶
func (c ChangelogItem) ExtractUser(connectionId uint64) []*models.JiraAccount
func (ChangelogItem) ToToolLayer ¶
func (c ChangelogItem) ToToolLayer(connectionId, changelogId uint64) *models.JiraIssueChangelogItems
type Issue ¶
type Issue struct { Expand string `json:"expand"` ID uint64 `json:"id,string"` Self string `json:"self"` Key string `json:"key"` Fields struct { AllFields map[string]interface{} Issuetype struct { Self string `json:"self"` ID string `json:"id"` Description string `json:"description"` IconURL string `json:"iconUrl"` Name string `json:"name"` Subtask bool `json:"subtask"` AvatarID int `json:"avatarId"` } `json:"issuetype"` Parent *struct { ID uint64 `json:"id,string"` Key string `json:"key"` } `json:"parent"` Timespent *int64 `json:"timespent"` Sprint *Sprint `json:"sprint"` ClosedSprints []Sprint `json:"closedSprints"` Project struct { Self string `json:"self"` ID uint64 `json:"id,string"` Key string `json:"key"` Name string `json:"name"` ProjectTypeKey string `json:"projectTypeKey"` AvatarUrls struct { Four8X48 string `json:"48x48"` Two4X24 string `json:"24x24"` One6X16 string `json:"16x16"` Three2X32 string `json:"32x32"` } `json:"avatarUrls"` } `json:"project"` FixVersions []interface{} `json:"fixVersions"` Aggregatetimespent interface{} `json:"aggregatetimespent"` Resolution interface{} `json:"resolution"` Resolutiondate *helper.Iso8601Time `json:"resolutiondate"` Workratio int `json:"workratio"` LastViewed string `json:"lastViewed"` Watches struct { Self string `json:"self"` WatchCount int `json:"watchCount"` IsWatching bool `json:"isWatching"` } `json:"watches"` Created helper.Iso8601Time `json:"created"` Epic *struct { ID int `json:"id"` Key string `json:"key"` Self string `json:"self"` Name string `json:"name"` Summary string `json:"summary"` Color struct { Key string `json:"key"` } `json:"color"` Done bool `json:"done"` } `json:"epic"` Priority *struct { Self string `json:"self"` IconURL string `json:"iconUrl"` Name string `json:"name"` ID uint64 `json:"id,string"` } `json:"priority"` Labels []string `json:"labels"` Timeestimate interface{} `json:"timeestimate"` Aggregatetimeoriginalestimate interface{} `json:"aggregatetimeoriginalestimate"` Versions []interface{} `json:"versions"` Issuelinks []interface{} `json:"issuelinks"` Assignee *Account `json:"assignee"` Updated helper.Iso8601Time `json:"updated"` Status struct { Self string `json:"self"` Description string `json:"description"` IconURL string `json:"iconUrl"` Name string `json:"name"` ID string `json:"id"` StatusCategory struct { Self string `json:"self"` ID int `json:"id"` Key string `json:"key"` ColorName string `json:"colorName"` Name string `json:"name"` } `json:"statusCategory"` } `json:"status"` Timeoriginalestimate *int64 `json:"timeoriginalestimate"` Description interface{} `json:"description"` Timetracking *struct { RemainingEstimate string `json:"remainingEstimate"` TimeSpent string `json:"timeSpent"` RemainingEstimateSeconds int64 `json:"remainingEstimateSeconds"` TimeSpentSeconds int `json:"timeSpentSeconds"` } `json:"timetracking"` Archiveddate interface{} `json:"archiveddate"` Aggregatetimeestimate *int64 `json:"aggregatetimeestimate"` Summary string `json:"summary"` Creator Account `json:"creator"` Subtasks []interface{} `json:"subtasks"` Reporter Account `json:"reporter"` Aggregateprogress struct { Progress int `json:"progress"` Total int `json:"total"` } `json:"aggregateprogress"` Environment interface{} `json:"environment"` Duedate interface{} `json:"duedate"` Progress struct { Progress int `json:"progress"` Total int `json:"total"` } `json:"progress"` Worklog *struct { StartAt int `json:"startAt"` MaxResults int `json:"maxResults"` Total int `json:"total"` Worklogs []Worklog `json:"worklogs"` } `json:"worklog"` } `json:"fields"` Changelog *struct { StartAt int `json:"startAt"` MaxResults int `json:"maxResults"` Total int `json:"total"` Histories []Changelog `json:"histories"` } `json:"changelog"` }
func (Issue) ExtractEntities ¶
func (i Issue) ExtractEntities(connectionId uint64) ([]uint64, *models.JiraIssue, []*models.JiraWorklog, []*models.JiraIssueChangelogs, []*models.JiraIssueChangelogItems, []*models.JiraAccount)
type Project ¶
type Project struct { Self string `json:"self"` ID string `json:"id"` Key string `json:"key"` Name string `json:"name"` }
func (Project) ToToolLayer ¶
func (p Project) ToToolLayer(connectionId uint64) *models.JiraProject
type RemoteLink ¶
type RemoteLink struct { ID uint64 `json:"id"` Self string `json:"self"` GlobalID string `json:"globalId"` Application struct { Type string `json:"type"` Name string `json:"name"` } `json:"application"` Relationship string `json:"relationship"` Object struct { URL string `json:"url"` Title string `json:"title"` Summary string `json:"summary"` Icon struct { URL16X16 string `json:"url16x16"` Title string `json:"title"` } `json:"icon"` Status struct { Resolved bool `json:"resolved"` Icon struct { URL16X16 string `json:"url16x16"` Title string `json:"title"` Link string `json:"link"` } `json:"icon"` } `json:"status"` } `json:"object"` }
func (RemoteLink) ToToolLayer ¶
func (r RemoteLink) ToToolLayer(connectionId, issueId uint64, raw json.RawMessage) *models.JiraRemotelink
type Sprint ¶
type Sprint struct { ID uint64 `json:"id"` Self string `json:"self"` State string `json:"state"` Name string `json:"name"` StartDate *time.Time `json:"startDate"` ActivatedDate *time.Time `json:"activatedDate"` EndDate *time.Time `json:"endDate"` CompleteDate *time.Time `json:"completeDate"` OriginBoardID uint64 `json:"originBoardId"` }
func (Sprint) ToToolLayer ¶
func (s Sprint) ToToolLayer(connectionId uint64) *models.JiraSprint
type Status ¶
type Status struct { Description string `json:"description"` IconURL string `json:"iconUrl"` ID string `json:"id"` Name string `json:"name"` Scope *struct { Type string `json:"type"` Project struct { ID string `json:"id"` } `json:"project"` } `json:"scope"` Self string `json:"self"` StatusCategory struct { ColorName string `json:"colorName"` ID int `json:"id"` Key string `json:"key"` Name string `json:"name"` Self string `json:"self"` } `json:"statusCategory"` UntranslatedName string `json:"untranslatedName"` }
type Worklog ¶
type Worklog struct { Self string `json:"self"` Author *Account `json:"author"` UpdateAuthor *Account `json:"updateAuthor"` Comment string `json:"comment"` Created string `json:"created"` Updated helper.Iso8601Time `json:"updated"` Started helper.Iso8601Time `json:"started"` TimeSpent string `json:"timeSpent"` TimeSpentSeconds int `json:"timeSpentSeconds"` ID string `json:"id"` IssueID uint64 `json:"issueId,string"` }
func (Worklog) ToToolLayer ¶
Click to show internal directories.
Click to hide internal directories.