From 4341f00dd0d12f972938d7992994afff4451112e Mon Sep 17 00:00:00 2001 From: pablohashescobar Date: Fri, 22 Mar 2024 19:40:16 +0530 Subject: [PATCH] dev: grouping for priority --- apiserver/plane/app/views/issue/base.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apiserver/plane/app/views/issue/base.py b/apiserver/plane/app/views/issue/base.py index 59feccd4d..c54bb87be 100644 --- a/apiserver/plane/app/views/issue/base.py +++ b/apiserver/plane/app/views/issue/base.py @@ -385,7 +385,11 @@ class IssueViewSet(WebhookMixin, BaseViewSet): ) else: return self.paginate( - order_by=order_by_param, + order_by=( + "priority_order" + if order_by_param in ["priority", "-priority"] + else order_by_param + ), request=request, queryset=issue_queryset, on_results=lambda issues: issue_on_results(