diff --git a/CHANGELOG.md b/CHANGELOG.md index 150d80cc..fc4348c3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -35,6 +35,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * Added client view. * Added account view. * Added leantime support for projects and project sync. +* Fixed minor leantime integration issues. * RELEASE NOTES: diff --git a/src/Service/LeantimeApiService.php b/src/Service/LeantimeApiService.php index 1dd4f9fe..efda6aaa 100644 --- a/src/Service/LeantimeApiService.php +++ b/src/Service/LeantimeApiService.php @@ -305,7 +305,7 @@ public function getAllSprints(): array */ public function getTicketsInSprint(string $sprintId): array { - $result = $this->request(self::API_PATH_JSONRPC, 'POST', 'leantime.rpc.tickets.getAll', ['sprint' => $sprintId]); + $result = $this->request(self::API_PATH_JSONRPC, 'POST', 'leantime.rpc.tickets.getAll', ['searchCriteria' => ['sprint' => $sprintId]]); return $result; } @@ -539,7 +539,7 @@ public function getTimesheetsForTicket(string $ticketId): mixed */ private function getIssuesForProjectMilestone($projectId, $milestoneId): array { - return $this->request(self::API_PATH_JSONRPC, 'POST', 'leantime.rpc.tickets.getAll', ['currentProject' => $projectId, 'milestone' => $milestoneId]); + return $this->request(self::API_PATH_JSONRPC, 'POST', 'leantime.rpc.tickets.getAll', ['searchCriteria' => ['currentProject' => $projectId, 'milestone' => $milestoneId]]); } /**