The Instructure Community will enter a read-only state on November 22, 2025 as we prepare to migrate to our new Community platform in early December.
Read our blog post for more info about this change.
Found this content helpful? Log in or sign up to leave a like!
For a course, I want to get a count of the requirements. There is no count of requirements on a course object, so I'd have to loop over all the modules, get the items and requirements. Is that the only way to do this?
I do know that if I look at one student I can get their progress and find out their progress i.e. how many requirements they have completed, and how many there are. Perhaps the reason there is no count of requirements on the course is that different student enrollments might have different numbers of requirements?
Solved! Go to Solution.
Hi @wmonroe ,
I wanted to get clarification on what you mean by requirements. Are you referring to the assignments/assessments that must be completed only, or are you also looking at module requirements from mastery paths?
I would be curious to hear a little more. From what you have mentioned I would say looping over the modules would be the solution which comes to mind, though, as you have mentioned this may differ student to student (and add further complexity if you are using mastery paths). I would be inclined to agree with your line of thinking as this is why you would not have a count on the course level, thinking on it further, you could also have group or section specific assignments and requirements.
If you are looking for something more general, I would consider looking only at a count of the assignment items in a course, that should give you a good generalisation, of course, this depends on the specific use case of why you are looking for the requirements count.
Would love to hear more about what you are hoping to use the statistic for, as always, there may be another way we could look at this.
Hope that helps!
Stuart
Hi @wmonroe ,
I wanted to get clarification on what you mean by requirements. Are you referring to the assignments/assessments that must be completed only, or are you also looking at module requirements from mastery paths?
I would be curious to hear a little more. From what you have mentioned I would say looping over the modules would be the solution which comes to mind, though, as you have mentioned this may differ student to student (and add further complexity if you are using mastery paths). I would be inclined to agree with your line of thinking as this is why you would not have a count on the course level, thinking on it further, you could also have group or section specific assignments and requirements.
If you are looking for something more general, I would consider looking only at a count of the assignment items in a course, that should give you a good generalisation, of course, this depends on the specific use case of why you are looking for the requirements count.
Would love to hear more about what you are hoping to use the statistic for, as always, there may be another way we could look at this.
Hope that helps!
Stuart
My objective was to count/report requirements for a course so everyone has a sense of the number of activities they have to complete the course. Using the CourseProgress for a student I can get the required count for a student, but not for the course.
I had never heard of master paths until you just told me about them...learn something new every day!
Yesterday I came to the same conclusion you shared above: I should just count assignments and use that as my measure of % complete. So that is what I'm doing now.
Thanks much for the feedback, affirmation, and new ideas 🙂
Hi @wmonroe ,
No worries at all, always happy that we can share new ideas here in the community, especially the ones that get your creative juices flowing.
Glad to hear you went down that path too, I think it is a good step forward in the short term.
Cheers,
Stuart
Community helpTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign inTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign in