diff --git a/apiserver/plane/api/views/search.py b/apiserver/plane/api/views/search.py index 70b7d0d0a..30139a15a 100644 --- a/apiserver/plane/api/views/search.py +++ b/apiserver/plane/api/views/search.py @@ -217,10 +217,10 @@ class IssueSearchEndpoint(BaseAPIView): project__project_projectmember__member=self.request.user, ) - if parent: - issues.filter(parent__isnull=True) + if parent == "true": + issues = issues.filter(parent__isnull=True) if blocker_blocked_by and issue_id: - issues.filter(blocker_issues=issue_id, blocked_issues=issue_id) + issues = issues.filter(blocker_issues=issue_id, blocked_issues=issue_id) return Response( issues.values(