diff --git a/src/AiJira/SprintGoals/SprintGoals.php b/src/AiJira/SprintGoals/SprintGoals.php index 9951a88..3f34e24 100644 --- a/src/AiJira/SprintGoals/SprintGoals.php +++ b/src/AiJira/SprintGoals/SprintGoals.php @@ -25,7 +25,7 @@ public function generateSprintGoals(string $sprintName, ?string $overwritePrompt $labels = $this->jiraFormatter->extractLabels($tasks); if ($overwritePrompt) { - return $this->openaiClient->getGeneratedSprintGoals($stories, [], $overwritePrompt); + return $this->openaiClient->getGeneratedSprintGoals([$tasks, $stories], [], $overwritePrompt); } else { return $this->openaiClient->getGeneratedSprintGoals($tasks, $labels, null) . "\n\nOverall:\n" . $this->openaiClient->getGeneratedSprintGoals($stories, [], null); }