[WEB-4722] fix: fixed draft state update #7663

This commit is contained in:
Vamsi Krishna 2025-08-28 18:38:30 +05:30 committed by GitHub
parent f2fabff10a
commit 3b3bd3e54e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -172,12 +172,14 @@ class WorkspaceDraftIssueViewSet(BaseViewSet):
{"error": "Issue not found"}, status=status.HTTP_404_NOT_FOUND {"error": "Issue not found"}, status=status.HTTP_404_NOT_FOUND
) )
project_id = request.data.get("project_id", issue.project_id)
serializer = DraftIssueCreateSerializer( serializer = DraftIssueCreateSerializer(
issue, issue,
data=request.data, data=request.data,
partial=True, partial=True,
context={ context={
"project_id": request.data.get("project_id", None), "project_id": project_id,
"cycle_id": request.data.get("cycle_id", "not_provided"), "cycle_id": request.data.get("cycle_id", "not_provided"),
}, },
) )