def _prepare_ticket_fields(fields):
    """
        Makes sure each key value pair in the fields dictionary is in the correct form.
        :param fields: Ticket fields.
        :return: fields: Ticket fields in the correct form for the ticketing tool.
        """
    for key, value in fields.items():
        if key in ['cc', 'admincc']:
            if isinstance(value, list):
                fields[key] = ', '.join(value)
    return fields
