mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
dev: grouping for priority
This commit is contained in:
parent
aea30897d5
commit
4341f00dd0
@ -385,7 +385,11 @@ class IssueViewSet(WebhookMixin, BaseViewSet):
|
|||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
return self.paginate(
|
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,
|
request=request,
|
||||||
queryset=issue_queryset,
|
queryset=issue_queryset,
|
||||||
on_results=lambda issues: issue_on_results(
|
on_results=lambda issues: issue_on_results(
|
||||||
|
Loading…
Reference in New Issue
Block a user