def process_mantis_custom_field(connection, mantis_cf_def):
    # get names of custom fields in youtrack that are mapped with this prototype
    # calculate type of custom field in youtrack
    yt_cf_type = mantis.CF_TYPES[mantis_cf_def.type]
    yt_name = mantis.FIELD_NAMES[mantis_cf_def.name] if mantis_cf_def.name in mantis.FIELD_NAMES else mantis_cf_def.name
    if yt_name in mantis.FIELD_TYPES:
        yt_cf_type = mantis.FIELD_TYPES[yt_name]
    create_custom_field(connection, yt_cf_type, yt_name, False)
Converts mantis cf to yt cf.
dataset/ETHPy150Open JetBrains/youtrack-rest-python-library/python/mantis2youtrack.py/process_mantis_custom_field