def _get_target_version_by_name(jira, conf, name):
    """
    Get an existing version by name for the current project.

    :param jira: current jira resource
    :param conf: JIRA configurations
    :param name: name of the version to check
    """
    versions = jira.project_versions(conf.JIRA['project'])
    for version in versions:
        if getattr(version, 'name') == name:
            return version

    return None