diff --git a/apiserver/plane/api/views/cycle.py b/apiserver/plane/api/views/cycle.py index db208e5f6..73edb7d1e 100644 --- a/apiserver/plane/api/views/cycle.py +++ b/apiserver/plane/api/views/cycle.py @@ -740,7 +740,10 @@ class TransferCycleIssueEndpoint(BaseAPIView): workspace__slug=slug, project_id=project_id, pk=new_cycle_id ) - if new_cycle.end_date < timezone.now().date(): + if ( + new_cycle.end_date is not None + and new_cycle.end_date < timezone.now().date() + ): return Response( { "error": "The cycle where the issues are transferred is already completed"