File tree 2 files changed +18
-0
lines changed
2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ type Issue struct {
47
47
RenderedFields * IssueRenderedFields `json:"renderedFields,omitempty" structs:"renderedFields,omitempty"`
48
48
Changelog * Changelog `json:"changelog,omitempty" structs:"changelog,omitempty"`
49
49
Transitions []Transition `json:"transitions,omitempty" structs:"transitions,omitempty"`
50
+ Names map [string ]string `json:"names,omitempty" structs:"names,omitempty"`
50
51
}
51
52
52
53
// ChangelogItems reflects one single changelog item of a history item
Original file line number Diff line number Diff line change @@ -89,6 +89,23 @@ func TestSprintService_GetIssue(t *testing.T) {
89
89
if len (issue .Fields .Comments .Comments ) != 1 {
90
90
t .Errorf ("Expected one comment, %v found" , len (issue .Fields .Comments .Comments ))
91
91
}
92
+ if len (issue .Names ) != 10 {
93
+ t .Errorf ("Expected 10 names, %v found" , len (issue .Names ))
94
+ }
95
+ if ! reflect .DeepEqual (issue .Names , map [string ]string {
96
+ "watcher" : "watcher" ,
97
+ "attachment" : "attachment" ,
98
+ "sub-tasks" : "sub-tasks" ,
99
+ "description" : "description" ,
100
+ "project" : "project" ,
101
+ "comment" : "comment" ,
102
+ "issuelinks" : "issuelinks" ,
103
+ "worklog" : "worklog" ,
104
+ "updated" : "updated" ,
105
+ "timetracking" : "timetracking" ,
106
+ }) {
107
+ t .Error ("Expected names for the returned issue" )
108
+ }
92
109
if err != nil {
93
110
t .Errorf ("Error given: %s" , err )
94
111
}
You can’t perform that action at this time.
0 commit comments