Using canvas API to get student submissions - workflow_state shows graded when grade is null

ElenaBaurkot
Community Member

I am trying to get unsubmitted student submissions using the endpoint 'api/v1/courses/:course_id/students/submissions?workflow_state=unsubmitted'. Overall this works, however there seems to be a bug, where if a student did not submit an assignment and the teacher enters a grade, but then removes it so that it's showing as a dash line (or null) in the gradebook, the submission has the workflow_state of graded and doesn't come up with the unsubmitted assignments. Does anyone know a work around for this or would it be possible to update the API so if the assignment was not submitted and a grade is added and then removed it shows unsubmitted since the assignment was in fact unsubmitted and it is no longer graded (even though it may have had a grade at some point)?

0 Likes