Skip to content

Commit 0c7b7c4

Browse files
chore: added state and priority order in workspace user profile (#2241)
1 parent 4d835c5 commit 0c7b7c4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

apiserver/plane/api/views/workspace.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1317,6 +1317,11 @@ class WorkspaceUserProfileIssuesEndpoint(BaseAPIView):
13171317
def get(self, request, slug, user_id):
13181318
try:
13191319
filters = issue_filters(request.query_params, "GET")
1320+
1321+
# Custom ordering for priority and state
1322+
priority_order = ["urgent", "high", "medium", "low", "none"]
1323+
state_order = ["backlog", "unstarted", "started", "completed", "cancelled"]
1324+
13201325
order_by_param = request.GET.get("order_by", "-created_at")
13211326
issue_queryset = (
13221327
Issue.issue_objects.filter(

0 commit comments

Comments
 (0)