def reftrack_element_data(rt, role):
    """Return the data for the element (e.g. the Asset or Shot)

    :param rt: the :class:`jukeboxcore.reftrack.Reftrack` holds the data
    :type rt: :class:`jukeboxcore.reftrack.Reftrack`
    :param role: item data role
    :type role: QtCore.Qt.ItemDataRole
    :returns: data for the element
    :rtype: depending on role
    :raises: None
    """
    element = rt.get_element()
    if element is None:
        return
    if role == QtCore.Qt.DisplayRole or role == QtCore.Qt.EditRole:
        return element.name
Return the data for the element (e.g. the Asset or Shot)

    :param rt: the :class:`jukeboxcore.reftrack.Reftrack` holds the data
    :type rt: :class:`jukeboxcore.reftrack.Reftrack`
    :param role: item data role
    :type role: QtCore.Qt.ItemDataRole
    :returns: data for the element
    :rtype: depending on role
    :raises: None