Skip to content

Commit

Permalink
fix: unable to added issues to a completed cycle
Browse files Browse the repository at this point in the history
  • Loading branch information
henit-chobisa committed Aug 12, 2024
1 parent 269e6cc commit a93e13f
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions apiserver/plane/api/views/cycle.py
Original file line number Diff line number Diff line change
Expand Up @@ -672,17 +672,6 @@ def post(self, request, slug, project_id, cycle_id):
workspace__slug=slug, project_id=project_id, pk=cycle_id
)

if (
cycle.end_date is not None
and cycle.end_date < timezone.now().date()
):
return Response(
{
"error": "The Cycle has already been completed so no new issues can be added"
},
status=status.HTTP_400_BAD_REQUEST,
)

# Get all CycleIssues already created
cycle_issues = list(
CycleIssue.objects.filter(
Expand Down

0 comments on commit a93e13f

Please sign in to comment.