I have the code snippet to be added in maniphest/export/ManiphestExcelDefaultFormat.php for exporting custom fields.
$custom_fields = PhabricatorCustomField::getObjectFields(
$task,
PhabricatorCustomField::ROLE_VIEW);
$custom_fields ->setViewer($user)
->readFieldsFromStorage($task);
$custom_fields->getFields()['std:maniphest:company:field']->getValueForStorage();
This works perfectly for custom fields of type "int", facing problems for fields of type : "select"
I want to see the values of the selected options in the exported excel, instead of the stored value- which is more of a key for me.
"F1": "1st Feature Description",
"F2": "2nd Feature Description",
"F3": "3rd Feature Description",
exported excel lists "F1, F2, F3," instead I want to see the feature descriptions.