diff --git a/apiserver/plane/app/views/state.py b/apiserver/plane/app/views/state.py index 232d19aee..7f56dd247 100644 --- a/apiserver/plane/app/views/state.py +++ b/apiserver/plane/app/views/state.py @@ -49,8 +49,18 @@ class StateViewSet(BaseViewSet): return Response(serializer.errors, status=status.HTTP_400_BAD_REQUEST) def list(self, request, slug, project_id): - states = State.objects.filter(workspace__slug=slug, project_id=project_id).values( - "id", "project_id", "workspace__slug", "name", "color", "group" + states = State.objects.filter( + workspace__slug=slug, project_id=project_id + ).values( + "id", + "project_id", + "workspace__slug", + "name", + "color", + "group", + "default", + "description", + "sequence", ) grouped = request.GET.get("grouped", False) if grouped == "true": diff --git a/apiserver/plane/app/views/workspace.py b/apiserver/plane/app/views/workspace.py index be89eedbb..f4e488f52 100644 --- a/apiserver/plane/app/views/workspace.py +++ b/apiserver/plane/app/views/workspace.py @@ -1469,7 +1469,15 @@ class WorkspaceStatesEndpoint(BaseAPIView): workspace__slug=slug, project__project_projectmember__member=request.user, ).values( - "id", "project_id", "workspace__slug", "name", "color", "group" + "id", + "project_id", + "workspace__slug", + "name", + "color", + "group", + "default", + "description", + "sequence", ) return Response(states, status=status.HTTP_200_OK)