Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
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 ¶
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"`
}
func (Board) ConvertApiScope ¶
func (b Board) ConvertApiScope() plugin.ToolLayerScope
type Changelog ¶
type Changelog struct {
ID uint64 `json:"id,string"`
Author Account `json:"author"`
Created common.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 Comment ¶
type Comment struct {
Self string `json:"self"`
Id string `json:"id"`
Author *Account `json:"author"`
Body string `json:"body"`
UpdateAuthor *Account `json:"updateAuthor"`
Created common.Iso8601Time `json:"created"`
Updated common.Iso8601Time `json:"updated"`
JsdPublic bool `json:"jsdPublic"`
}
func (Comment) ToToolLayer ¶
type DevelopmentPanel ¶
type DevelopmentPanel struct {
Errors []interface{} `json:"errors"`
Detail []struct {
Repositories []struct {
Name string `json:"name"`
Avatar string `json:"avatar"`
URL string `json:"url"`
Commits []struct {
ID string `json:"id"`
DisplayID string `json:"displayId"`
AuthorTimestamp string `json:"authorTimestamp"`
URL string `json:"url"`
Author struct {
Name string `json:"name"`
Avatar string `json:"avatar"`
} `json:"author"`
FileCount int `json:"fileCount"`
Merge bool `json:"merge"`
Message string `json:"message"`
Files []struct {
Path string `json:"path"`
URL string `json:"url"`
ChangeType string `json:"changeType"`
LinesAdded int `json:"linesAdded"`
LinesRemoved int `json:"linesRemoved"`
} `json:"files"`
} `json:"commits"`
} `json:"repositories"`
Instance struct {
Name string `json:"name"`
BaseURL string `json:"baseUrl"`
Type string `json:"type"`
ID string `json:"id"`
TypeName string `json:"typeName"`
SingleInstance bool `json:"singleInstance"`
} `json:"_instance"`
} `json:"detail"`
}
type InOutwardIssue ¶
type InOutwardIssue struct {
ID uint64 `json:"id,string"`
Key string `json:"key"`
Self string `json:"self"`
Fields struct {
Summary string `json:"summary"`
Status struct {
Self string `json:"self"`
Description string `json:"description"`
IconURL string `json:"iconUrl"`
Name string `json:"name"`
ID uint64 `json:"id,string"`
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"`
Priority struct {
Self string `json:"self"`
IconURL string `json:"iconUrl"`
Name string `json:"name"`
ID uint64 `json:"id,string"`
} `json:"priority"`
Issuetype struct {
Self string `json:"self"`
ID uint64 `json:"id,string"`
Description string `json:"description"`
IconURL string `json:"iconUrl"`
Name string `json:"name"`
Subtask bool `json:"subtask"`
AvatarID int `json:"avatarId"`
} `json:"issuetype"`
} `json:"fields"`
}
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 *common.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 *common.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 []IssueLink `json:"issuelinks"`
Assignee *Account `json:"assignee"`
Updated common.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"`
Components []struct {
Self string `json:"self"`
ID string `json:"id"`
Name string `json:"name"`
} `json:"components"`
Timeoriginalestimate *int64 `json:"timeoriginalestimate"`
Description string `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"`
Comment struct {
Comments []Comment `json:"comments"`
Self string `json:"self"`
MaxResults int `json:"maxResults"`
Total int `json:"total"`
StartAt int `json:"startAt"`
} `json:"comment"`
} `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.JiraIssueComment, []*models.JiraWorklog, []*models.JiraIssueChangelogs, []*models.JiraIssueChangelogItems, []*models.JiraAccount)
func (*Issue) SetAllFields ¶
func (i *Issue) SetAllFields(raw json.RawMessage) errors.Error
type IssueLink ¶
type IssueLink struct {
ID uint64 `json:"id,string"`
Self string `json:"self"`
Type IssueLinkType `json:"type"`
InwardIssue InOutwardIssue `json:"inwardIssue"`
OutwardIssue InOutwardIssue `json:"outwardIssue"`
}
type IssueLinkType ¶
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 common.Iso8601Time `json:"updated"`
Started common.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.