Skip to content

Commit

Permalink
no-task Fixing an issue where the originalEstimate field was not bein…
Browse files Browse the repository at this point in the history
…g set to 0 if it was missing.
  • Loading branch information
nxsschoenfeld committed Aug 14, 2023
1 parent 7d2f72c commit 3296475
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AiJira/SprintReview/Mapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public function mapTaskFields(array $ticketData): array
{
$tasks = [];
foreach ($ticketData['issues'] as $ticket) {
$tasks[$ticket['key']] = ['title' => $ticket['fields']['summary'], 'estimation' => $ticket['fields']['timetracking']['originalEstimate']];
$tasks[$ticket['key']] = ['title' => $ticket['fields']['summary'], 'estimation' => $ticket['fields']['timetracking']['originalEstimate'] ?? 0];
}

return $tasks;
Expand Down

0 comments on commit 3296475

Please sign in to comment.