def create_yt_custom_field(connection, project_Id, field_name, value_names):
    field_values = trac_values_to_youtrack_values(field_name, value_names)
    field_name = trac_field_name_to_yt_field_name(field_name)
    process_custom_field(connection, project_Id, tracLib.FIELD_TYPES[field_name], field_name, field_values)
Creates YT custom field if needed and attaches it to project with id project_id. Converts Trac value_names
dataset/ETHPy150Open JetBrains/youtrack-rest-python-library/python/trac2youtrack.py/create_yt_custom_field