add set_custom_field method to Analysis