def create_host_string(hosts):
    """
    Creates a string with a pleasant style to display ip address/hostnames
    in the Jira issue description=.
    :param hosts: a list of dictionaries
    :return: string
    """
    result = ''

    for host in hosts:
        result = result + ' | ' + host['ip']
        if host['name']:
            result = result + '(' + host['name'] + ')'

    return result