How to import questions with custom fields?

How to import questions with custom fields?

per wz z -
Nombre de respostes: 6

I created a dropdown custom field of difficulty for questions on page /question/bank/customfields/customfield.php

But I don't know how to import the custom field value in Moodle XML file. I mannually set the value for the custom field of a question, then exported it in Moodle XML format, however, there was no related information of the custom field in the file.

Mitjana de qualificacions: -
En resposta a wz z

Re: How to import questions with custom fields?

per Tim Hunt -
Imatge Core developers Imatge Documentation writers Imatge Particularly helpful Moodlers Imatge Peer reviewers Imatge Plugin developers
Custom fields are not currently included in the import/export. Obviously, they should be, but no one has had time to fix it yet. Sorry.
En resposta a Tim Hunt

Re: How to import questions with custom fields?

per Coral Zawadzki -
Hi Tim. Is this still the case now? Would be good to mention in my training if so.
En resposta a Coral Zawadzki

Re: How to import questions with custom fields?

per Eoin Campbell -
Imatge Core developers Imatge Plugin developers
It seems to me that for question meta-information of this nature ("Difficulty", "Blooms taxonomy", "Subject", etc.), it would be better to use the standard question Tags facility rather than defining custom fields. The Tags are searchable in the Question selection user interface.
En resposta a Coral Zawadzki

Re: How to import questions with custom fields?

per Tim Hunt -
Imatge Core developers Imatge Documentation writers Imatge Particularly helpful Moodlers Imatge Peer reviewers Imatge Plugin developers
I think that no work has been done on it. I think there is not even an issue for it in the Moodle bug tracker. ... OK, so I just created MDL-78520. This needs to be sorted out, but not sure when someone will get the time to look at it.