@@ -101,42 +101,43 @@ type IssueFields struct {
101101 // * "workratio": -1,
102102 // * "lastViewed": null,
103103 // * "environment": null,
104- Expand string `json:"expand,omitempty" structs:"expand,omitempty"`
105- Type IssueType `json:"issuetype,omitempty" structs:"issuetype,omitempty"`
106- Project Project `json:"project,omitempty" structs:"project,omitempty"`
107- Resolution * Resolution `json:"resolution,omitempty" structs:"resolution,omitempty"`
108- Priority * Priority `json:"priority,omitempty" structs:"priority,omitempty"`
109- Resolutiondate Time `json:"resolutiondate,omitempty" structs:"resolutiondate,omitempty"`
110- Created Time `json:"created,omitempty" structs:"created,omitempty"`
111- Duedate Date `json:"duedate,omitempty" structs:"duedate,omitempty"`
112- Watches * Watches `json:"watches,omitempty" structs:"watches,omitempty"`
113- Assignee * User `json:"assignee,omitempty" structs:"assignee,omitempty"`
114- Updated Time `json:"updated,omitempty" structs:"updated,omitempty"`
115- Description string `json:"description,omitempty" structs:"description,omitempty"`
116- Summary string `json:"summary,omitempty" structs:"summary,omitempty"`
117- Creator * User `json:"Creator,omitempty" structs:"Creator,omitempty"`
118- Reporter * User `json:"reporter,omitempty" structs:"reporter,omitempty"`
119- Components []* Component `json:"components,omitempty" structs:"components,omitempty"`
120- Status * Status `json:"status,omitempty" structs:"status,omitempty"`
121- Progress * Progress `json:"progress,omitempty" structs:"progress,omitempty"`
122- AggregateProgress * Progress `json:"aggregateprogress,omitempty" structs:"aggregateprogress,omitempty"`
123- TimeTracking * TimeTracking `json:"timetracking,omitempty" structs:"timetracking,omitempty"`
124- TimeSpent int `json:"timespent,omitempty" structs:"timespent,omitempty"`
125- TimeEstimate int `json:"timeestimate,omitempty" structs:"timeestimate,omitempty"`
126- TimeOriginalEstimate int `json:"timeoriginalestimate,omitempty" structs:"timeoriginalestimate,omitempty"`
127- Worklog * Worklog `json:"worklog,omitempty" structs:"worklog,omitempty"`
128- IssueLinks []* IssueLink `json:"issuelinks,omitempty" structs:"issuelinks,omitempty"`
129- Comments * Comments `json:"comment,omitempty" structs:"comment,omitempty"`
130- FixVersions []* FixVersion `json:"fixVersions,omitempty" structs:"fixVersions,omitempty"`
131- Labels []string `json:"labels,omitempty" structs:"labels,omitempty"`
132- Subtasks []* Subtasks `json:"subtasks,omitempty" structs:"subtasks,omitempty"`
133- Attachments []* Attachment `json:"attachment,omitempty" structs:"attachment,omitempty"`
134- Epic * Epic `json:"epic,omitempty" structs:"epic,omitempty"`
135- Sprint * Sprint `json:"sprint,omitempty" structs:"sprint,omitempty"`
136- Parent * Parent `json:"parent,omitempty" structs:"parent,omitempty"`
137- AggregateTimeOriginalEstimate int `json:"aggregatetimeoriginalestimate,omitempty" structs:"aggregatetimeoriginalestimate,omitempty"`
138- AggregateTimeSpent int `json:"aggregatetimespent,omitempty" structs:"aggregatetimespent,omitempty"`
139- AggregateTimeEstimate int `json:"aggregatetimeestimate,omitempty" structs:"aggregatetimeestimate,omitempty"`
104+ Expand string `json:"expand,omitempty" structs:"expand,omitempty"`
105+ Type IssueType `json:"issuetype,omitempty" structs:"issuetype,omitempty"`
106+ Project Project `json:"project,omitempty" structs:"project,omitempty"`
107+ Resolution * Resolution `json:"resolution,omitempty" structs:"resolution,omitempty"`
108+ Priority * Priority `json:"priority,omitempty" structs:"priority,omitempty"`
109+ Resolutiondate Time `json:"resolutiondate,omitempty" structs:"resolutiondate,omitempty"`
110+ Created Time `json:"created,omitempty" structs:"created,omitempty"`
111+ Duedate Date `json:"duedate,omitempty" structs:"duedate,omitempty"`
112+ Watches * Watches `json:"watches,omitempty" structs:"watches,omitempty"`
113+ Assignee * User `json:"assignee,omitempty" structs:"assignee,omitempty"`
114+ Updated Time `json:"updated,omitempty" structs:"updated,omitempty"`
115+ Description string `json:"description,omitempty" structs:"description,omitempty"`
116+ Summary string `json:"summary,omitempty" structs:"summary,omitempty"`
117+ Creator * User `json:"Creator,omitempty" structs:"Creator,omitempty"`
118+ Reporter * User `json:"reporter,omitempty" structs:"reporter,omitempty"`
119+ Components []* Component `json:"components,omitempty" structs:"components,omitempty"`
120+ Status * Status `json:"status,omitempty" structs:"status,omitempty"`
121+ Progress * Progress `json:"progress,omitempty" structs:"progress,omitempty"`
122+ AggregateProgress * Progress `json:"aggregateprogress,omitempty" structs:"aggregateprogress,omitempty"`
123+ TimeTracking * TimeTracking `json:"timetracking,omitempty" structs:"timetracking,omitempty"`
124+ TimeSpent int `json:"timespent,omitempty" structs:"timespent,omitempty"`
125+ TimeEstimate int `json:"timeestimate,omitempty" structs:"timeestimate,omitempty"`
126+ TimeOriginalEstimate int `json:"timeoriginalestimate,omitempty" structs:"timeoriginalestimate,omitempty"`
127+ Worklog * Worklog `json:"worklog,omitempty" structs:"worklog,omitempty"`
128+ IssueLinks []* IssueLink `json:"issuelinks,omitempty" structs:"issuelinks,omitempty"`
129+ Comments * Comments `json:"comment,omitempty" structs:"comment,omitempty"`
130+ FixVersions []* FixVersion `json:"fixVersions,omitempty" structs:"fixVersions,omitempty"`
131+ AffectsVersions []* AffectsVersion `json:"versions,omitempty" structs:"versions,omitempty"`
132+ Labels []string `json:"labels,omitempty" structs:"labels,omitempty"`
133+ Subtasks []* Subtasks `json:"subtasks,omitempty" structs:"subtasks,omitempty"`
134+ Attachments []* Attachment `json:"attachment,omitempty" structs:"attachment,omitempty"`
135+ Epic * Epic `json:"epic,omitempty" structs:"epic,omitempty"`
136+ Sprint * Sprint `json:"sprint,omitempty" structs:"sprint,omitempty"`
137+ Parent * Parent `json:"parent,omitempty" structs:"parent,omitempty"`
138+ AggregateTimeOriginalEstimate int `json:"aggregatetimeoriginalestimate,omitempty" structs:"aggregatetimeoriginalestimate,omitempty"`
139+ AggregateTimeSpent int `json:"aggregatetimespent,omitempty" structs:"aggregatetimespent,omitempty"`
140+ AggregateTimeEstimate int `json:"aggregatetimeestimate,omitempty" structs:"aggregatetimeestimate,omitempty"`
140141 Unknowns tcontainer.MarshalMap
141142}
142143
@@ -476,6 +477,9 @@ type FixVersion struct {
476477 StartDate string `json:"startDate,omitempty" structs:"startDate,omitempty"`
477478}
478479
480+ // AffectsVersion represents a software release which is affected by an issue.
481+ type AffectsVersion Version
482+
479483// CommentVisibility represents he visibility of a comment.
480484// E.g. Type could be "role" and Value "Administrators"
481485type CommentVisibility struct {
0 commit comments