Skip to content

Commit 4d211e4

Browse files
authored
Fix issue with wrong field name timeTracking (#116)
Wrong name leads to error when creating issues with the client, setting timeTracking property. Error Message : {"errorMessages":[],"errors":{"timetTracking":"Field 'timetTracking' cannot be set. It is not on the appropriate screen, or unknown."}}
1 parent f8149da commit 4d211e4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Issue/IssueField.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,11 @@ public function jsonSerialize()
147147
unset($vars['duedateString']);
148148
}
149149

150+
if (!empty($this->timeTracking)) {
151+
$vars['timetracking'] = $this->timeTracking;
152+
unset($vars['timeTracking']);
153+
}
154+
150155
return $vars;
151156
}
152157

0 commit comments

Comments
 (0)