def create_task(self, element):
        """Create a new task for the given element

        :param element: the element for the task
        :type element: :class:`jukeboxcore.djadapter.models.Shot` | :class:`jukeboxcore.djadapter.models.Asset`
        :returns: None
        :rtype: None
        :raises: None
        """
        dialog = TaskCreatorDialog(element=element, parent=self)
        dialog.exec_()
        task = dialog.task
        return task
Create a new task for the given element

        :param element: the element for the task
        :type element: :class:`jukeboxcore.djadapter.models.Shot` | :class:`jukeboxcore.djadapter.models.Asset`
        :returns: None
        :rtype: None
        :raises: None