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!
Hello Canvas Devs,
I'm looking for any query/existing features that will allow me to retrieve all comments from a given assignment.
For example, if I left comments on every student's submission of 3.1 homework, is there a way to download them all?
Hi,
you could try this graphql query on yourcanvasinstance/graphiql:
query MyQuery {
assignment(id: "68977") {
submissionsConnection {
nodes {
commentsConnection {
nodes {
comment
}
}
}
}
}
}
If you paste the resulting json here: https://konklone.io/json/ , you get a csv with the comments.
If you also want the name of the students, you can use this query:
query MyQuery {
assignment(id: "68977") {
submissionsConnection {
nodes {
commentsConnection {
nodes {
comment
}
}
user {
email
}
}
}
}
}
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