Create new issue.

def createmeta(accountable, project_key, issue_type=None):
    """
    Create new issue.
    """
    metadata = accountable.create_meta(project_key, issue_type)
    headers = [
        'project_key', 'issuetype_name', 'field_key', 'field_name', 'required'
    ]
    rows = [headers]
    for project in metadata:
        key = project['key']
        issuetypes = project['issuetypes']
        for issuetype in issuetypes:
            name = issuetype['name']
            fields = issuetype['fields']
            for k, v in fields.items():
                field_key = k
                field_name = v['name']
                required = v['required']
                rows.append([key, name, field_key, field_name, required])
    print_table(SingleTable(rows))