chore: corrected the subissue ordering (#5030)

This commit is contained in:
Bavisetti Narayan
2024-07-04 19:51:05 +05:30
committed by GitHub
parent 9a927ded84
commit a36d1a753e
2 changed files with 2 additions and 1 deletions

View File

@@ -149,7 +149,7 @@ class InboxIssueAPIEndpoint(BaseAPIView):
description_html=request.data.get("issue", {}).get(
"description_html", "<p></p>"
),
priority=request.data.get("issue", {}).get("priority", "low"),
priority=request.data.get("issue", {}).get("priority", "none"),
project_id=project_id,
state=state,
)

View File

@@ -99,6 +99,7 @@ class SubIssuesEndpoint(BaseAPIView):
),
)
.annotate(state_group=F("state__group"))
.order_by("-created_at")
)
# create's a dict with state group name with their respective issue id's