copy feedback from one course to others

copy feedback from one course to others

by Farahnaz Fathianpour -
Number of replies: 9

Hi, I want to copy feedback from one course to others (about 300 courses) and I wrote sql query to do that but after inserting contents in mdl_feedback and mdl_feedback_item, I can see records for other courses in these two tables but in moodle doesn't show feedback in those courses. After searching I found that may be need to add record in mdl_context and mdl_course_modules, but for mdl_context needs to insert path also which I don't know how to obtain path for each course. would please help me in this regard OR tell me can copy feedback from one course to others or not?

Average of ratings: -
In reply to Farahnaz Fathianpour

Re: copy feedback from one course to others

by Helen Foster -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

Hello,

To copy and restore a feedback activity to lots of courses, you can use CLI, as described in the documentation Course backup and Course restore.

In reply to Helen Foster

Re: copy feedback from one course to others

by Farahnaz Fathianpour -
Thanks for your reply, I just want to copy feedback module and it's questions without answers to other courses so that students of other courses can answer too. But I think with backup and restore ,it copies every content of feedback to other courses, am I right? If you can tell me what tables are really involved with feedback, I can write the sql query. I already wrote sql query and used mdl_feedback,mdl_feedback_item after that records created in database but didn't show in moodle website, one again updated query and add mdl_course_module and mdl_context. so please let me know if I have used right tables.
In reply to Farahnaz Fathianpour

Re: copy feedback from one course to others

by Emma Richardson -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers
  1. Put the feedback on the front page and then use the Mapped courses feature to put it in all/or selected courses in the feedback block.
  2. Put the feedback in its own course with nothing else in it.  Then use upload courses (see docs) to add the feedback to every course you list in a csv file.
In reply to Emma Richardson

Re: copy feedback from one course to others

by Farahnaz Fathianpour -
Thanks for your prompt reply. would you please explain more about "use upload courses to add the feedback ...", I know how to upload courses but now doesn't know how to add feedback in upload courses.
In reply to Farahnaz Fathianpour

Re: copy feedback from one course to others

by Emma Richardson -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers
You create a course with just the feedback in it. Then you reference it as the template course in your csv...there is an option to update existing courses and that will add the feedback to the course..
In reply to Emma Richardson

Re: copy feedback from one course to others

by Gerald Crumbley -
We want to change the feedback questions for all of our courses. We have 88+ courses. How do I format a csv file to only update the feedback questions? Without modifying or losing any other data the courses.
In reply to Emma Richardson

Re: copy feedback from one course to others

by Gerald Crumbley -
I assume this will ADD this as a new feedback to an existing course. Is there a way to UPDATE (or change) the questions in existing courses by doing the same thing, or similar?
In reply to Emma Richardson

Re: copy feedback from one course to others

by Ahmed Samy -

Hello,

Thanks for your replies.

I have tried both solutions, but, I am stuck.

For the first when I add it to frontpage, They dont appear in the courses. After I try mapping it to the courses, I get a message that it should be accessed from the course (If I try to access it from the front page) and still doesn't appear in the courses.

For the second option, I can't find the way to import or update the courses using a course as a template.

Your help is so appreciated!