<% project = Project.find_by_id(custom_field.value) %><%= project.name if project %>