diff --git a/pkg/infra/models/jira_issue_v2.go b/pkg/infra/models/jira_issue_v2.go index 967c76fc..ac8c1829 100644 --- a/pkg/infra/models/jira_issue_v2.go +++ b/pkg/infra/models/jira_issue_v2.go @@ -85,33 +85,34 @@ func (i *IssueSchemeV2) ToMap() (map[string]interface{}, error) { } type IssueFieldsSchemeV2 struct { - Parent *ParentScheme `json:"parent,omitempty"` - IssueType *IssueTypeScheme `json:"issuetype,omitempty"` - IssueLinks []*IssueLinkScheme `json:"issuelinks,omitempty"` - Watcher *IssueWatcherScheme `json:"watches,omitempty"` - Votes *IssueVoteScheme `json:"votes,omitempty"` - Versions []*VersionScheme `json:"versions,omitempty"` - Project *ProjectScheme `json:"project,omitempty"` - FixVersions []*VersionScheme `json:"fixVersions,omitempty"` - Priority *PriorityScheme `json:"priority,omitempty"` - Components []*ComponentScheme `json:"components,omitempty"` - Creator *UserScheme `json:"creator,omitempty"` - Reporter *UserScheme `json:"reporter,omitempty"` - Assignee *UserScheme `json:"assignee,omitempty"` - Resolution *ResolutionScheme `json:"resolution,omitempty"` - Resolutiondate string `json:"resolutiondate,omitempty"` - Workratio int `json:"workratio,omitempty"` - StatusCategoryChangeDate string `json:"statuscategorychangedate,omitempty"` - LastViewed string `json:"lastViewed,omitempty"` - Summary string `json:"summary,omitempty"` - Created string `json:"created,omitempty"` - Updated string `json:"updated,omitempty"` - Labels []string `json:"labels,omitempty"` - Status *StatusScheme `json:"status,omitempty"` - Description string `json:"description,omitempty"` - Comment *IssueCommentPageSchemeV2 `json:"comment,omitempty"` - Subtasks []*IssueScheme `json:"subtasks,omitempty"` - Security *SecurityScheme `json:"security,omitempty"` + Parent *ParentScheme `json:"parent,omitempty"` + IssueType *IssueTypeScheme `json:"issuetype,omitempty"` + IssueLinks []*IssueLinkScheme `json:"issuelinks,omitempty"` + Watcher *IssueWatcherScheme `json:"watches,omitempty"` + Votes *IssueVoteScheme `json:"votes,omitempty"` + Versions []*VersionScheme `json:"versions,omitempty"` + Project *ProjectScheme `json:"project,omitempty"` + FixVersions []*VersionScheme `json:"fixVersions,omitempty"` + Priority *PriorityScheme `json:"priority,omitempty"` + Components []*ComponentScheme `json:"components,omitempty"` + Creator *UserScheme `json:"creator,omitempty"` + Reporter *UserScheme `json:"reporter,omitempty"` + Assignee *UserScheme `json:"assignee,omitempty"` + Resolution *ResolutionScheme `json:"resolution,omitempty"` + Resolutiondate string `json:"resolutiondate,omitempty"` + Workratio int `json:"workratio,omitempty"` + StatusCategoryChangeDate string `json:"statuscategorychangedate,omitempty"` + LastViewed string `json:"lastViewed,omitempty"` + Summary string `json:"summary,omitempty"` + Created string `json:"created,omitempty"` + Updated string `json:"updated,omitempty"` + Labels []string `json:"labels,omitempty"` + Status *StatusScheme `json:"status,omitempty"` + Description string `json:"description,omitempty"` + Comment *IssueCommentPageSchemeV2 `json:"comment,omitempty"` + Subtasks []*IssueScheme `json:"subtasks,omitempty"` + Security *SecurityScheme `json:"security,omitempty"` + Worklog *IssueWorklogRichTextPageScheme `json:"worklog,omitempty"` } type ParentScheme struct { diff --git a/pkg/infra/models/jira_issue_v3.go b/pkg/infra/models/jira_issue_v3.go index b15c9e28..454ce153 100644 --- a/pkg/infra/models/jira_issue_v3.go +++ b/pkg/infra/models/jira_issue_v3.go @@ -85,34 +85,35 @@ func (i *IssueScheme) ToMap() (map[string]interface{}, error) { } type IssueFieldsScheme struct { - Parent *ParentScheme `json:"parent,omitempty"` - IssueType *IssueTypeScheme `json:"issuetype,omitempty"` - IssueLinks []*IssueLinkScheme `json:"issuelinks,omitempty"` - Watcher *IssueWatcherScheme `json:"watches,omitempty"` - Votes *IssueVoteScheme `json:"votes,omitempty"` - Versions []*VersionScheme `json:"versions,omitempty"` - Project *ProjectScheme `json:"project,omitempty"` - FixVersions []*VersionScheme `json:"fixVersions,omitempty"` - Priority *PriorityScheme `json:"priority,omitempty"` - Components []*ComponentScheme `json:"components,omitempty"` - Creator *UserScheme `json:"creator,omitempty"` - Reporter *UserScheme `json:"reporter,omitempty"` - Assignee *UserScheme `json:"assignee,omitempty"` - Resolution *ResolutionScheme `json:"resolution,omitempty"` - Resolutiondate string `json:"resolutiondate,omitempty"` - Workratio int `json:"workratio,omitempty"` - StatusCategoryChangeDate string `json:"statuscategorychangedate,omitempty"` - LastViewed string `json:"lastViewed,omitempty"` - Summary string `json:"summary,omitempty"` - Created string `json:"created,omitempty"` - Updated string `json:"updated,omitempty"` - Labels []string `json:"labels,omitempty"` - Status *StatusScheme `json:"status,omitempty"` - Description *CommentNodeScheme `json:"description,omitempty"` - Comment *IssueCommentPageScheme `json:"comment,omitempty"` - Subtasks []*IssueScheme `json:"subtasks,omitempty"` - Security *SecurityScheme `json:"security,omitempty"` - Attachment []*AttachmentScheme `json:"attachment,omitempty"` + Parent *ParentScheme `json:"parent,omitempty"` + IssueType *IssueTypeScheme `json:"issuetype,omitempty"` + IssueLinks []*IssueLinkScheme `json:"issuelinks,omitempty"` + Watcher *IssueWatcherScheme `json:"watches,omitempty"` + Votes *IssueVoteScheme `json:"votes,omitempty"` + Versions []*VersionScheme `json:"versions,omitempty"` + Project *ProjectScheme `json:"project,omitempty"` + FixVersions []*VersionScheme `json:"fixVersions,omitempty"` + Priority *PriorityScheme `json:"priority,omitempty"` + Components []*ComponentScheme `json:"components,omitempty"` + Creator *UserScheme `json:"creator,omitempty"` + Reporter *UserScheme `json:"reporter,omitempty"` + Assignee *UserScheme `json:"assignee,omitempty"` + Resolution *ResolutionScheme `json:"resolution,omitempty"` + Resolutiondate string `json:"resolutiondate,omitempty"` + Workratio int `json:"workratio,omitempty"` + StatusCategoryChangeDate string `json:"statuscategorychangedate,omitempty"` + LastViewed string `json:"lastViewed,omitempty"` + Summary string `json:"summary,omitempty"` + Created string `json:"created,omitempty"` + Updated string `json:"updated,omitempty"` + Labels []string `json:"labels,omitempty"` + Status *StatusScheme `json:"status,omitempty"` + Description *CommentNodeScheme `json:"description,omitempty"` + Comment *IssueCommentPageScheme `json:"comment,omitempty"` + Subtasks []*IssueScheme `json:"subtasks,omitempty"` + Security *SecurityScheme `json:"security,omitempty"` + Attachment []*AttachmentScheme `json:"attachment,omitempty"` + Worklog *IssueWorklogADFPageScheme `json:"worklog,omitempty"` } type IssueTransitionScheme struct {