@@ -132,8 +132,8 @@ public function getSummary()
132
132
*/
133
133
public function getIssueType ()
134
134
{
135
- if (isset ($ this ->fields ['issuetype ' ])) {
136
- return $ this ->fields ['issuetype ' ];
135
+ if (isset ($ this ->fields ['Issue Type ' ])) {
136
+ return $ this ->fields ['Issue Type ' ];
137
137
}
138
138
}
139
139
@@ -144,8 +144,8 @@ public function getIssueType()
144
144
*/
145
145
public function getReporter ()
146
146
{
147
- if (isset ($ this ->fields ['reporter ' ])) {
148
- return $ this ->fields ['reporter ' ];
147
+ if (isset ($ this ->fields ['Reporter ' ])) {
148
+ return $ this ->fields ['Reporter ' ];
149
149
}
150
150
}
151
151
@@ -156,8 +156,8 @@ public function getReporter()
156
156
*/
157
157
public function getCreated ()
158
158
{
159
- if (isset ($ this ->fields ['created ' ])) {
160
- return $ this ->fields ['created ' ];
159
+ if (isset ($ this ->fields ['Created ' ])) {
160
+ return $ this ->fields ['Created ' ];
161
161
}
162
162
}
163
163
@@ -169,10 +169,10 @@ public function getCreated()
169
169
170
170
public function getAssignee ()
171
171
{
172
- if (isset ($ this ->fields ['assignee ' ])) {
173
- return $ this ->fields ['assignee ' ];
172
+ if (isset ($ this ->fields ['Assignee ' ])) {
173
+ return $ this ->fields ['Assignee ' ];
174
174
}
175
- }
175
+ }
176
176
177
177
/**
178
178
* get issue updated time
@@ -181,8 +181,8 @@ public function getAssignee()
181
181
*/
182
182
public function getUpdated ()
183
183
{
184
- if (isset ($ this ->fields ['updated ' ])) {
185
- return $ this ->fields ['updated ' ];
184
+ if (isset ($ this ->fields ['Updated ' ])) {
185
+ return $ this ->fields ['Updated ' ];
186
186
}
187
187
}
188
188
@@ -193,8 +193,8 @@ public function getUpdated()
193
193
*/
194
194
public function getPriority ()
195
195
{
196
- if (isset ($ this ->fields ['priority ' ])) {
197
- return $ this ->fields ['priority ' ];
196
+ if (isset ($ this ->fields ['Priority ' ])) {
197
+ return $ this ->fields ['Priority ' ];
198
198
}
199
199
}
200
200
@@ -265,20 +265,22 @@ public function getFixVersions()
265
265
*/
266
266
public function getResolution ()
267
267
{
268
- if (isset ($ this ->fields ['resolution ' ])) {
269
- return $ this ->fields ['resolution ' ];
268
+ if (isset ($ this ->fields ['Resolution ' ])) {
269
+ return $ this ->fields ['Resolution ' ];
270
270
}
271
271
}
272
272
273
273
/**
274
+ * Is the field exists? Maybe there should be 'Planned End'?
275
+ *
274
276
* get resolution date
275
277
*
276
278
* @return mixed
277
279
*/
278
280
public function getResolutionDate ()
279
281
{
280
- if (isset ($ this ->fields ['resolutiondate ' ])) {
281
- return $ this ->fields ['resolutiondate ' ];
282
+ if (isset ($ this ->fields ['Resolutiondate ' ])) {
283
+ return $ this ->fields ['Resolutiondate ' ];
282
284
}
283
285
}
284
286
@@ -287,10 +289,22 @@ public function getResolutionDate()
287
289
*
288
290
* @return mixed
289
291
*/
290
- public function getWatches ()
292
+ public function getWatchers ()
293
+ {
294
+ if (isset ($ this ->fields ['Watchers ' ])) {
295
+ return $ this ->fields ['Watchers ' ];
296
+ }
297
+ }
298
+
299
+ /**
300
+ * get due date
301
+ *
302
+ * @return mixed
303
+ */
304
+ public function getDueDate ()
291
305
{
292
- if (isset ($ this ->fields ['watches ' ])) {
293
- return $ this ->fields ['watches ' ];
306
+ if (isset ($ this ->fields ['Due Date ' ])) {
307
+ return $ this ->fields ['Due Date ' ];
294
308
}
295
309
}
296
310
0 commit comments