diff --git a/client/ayon_core/tools/publisher/widgets/card_view_widgets.py b/client/ayon_core/tools/publisher/widgets/card_view_widgets.py
index 2f633b3149..65c5d1d4ef 100644
--- a/client/ayon_core/tools/publisher/widgets/card_view_widgets.py
+++ b/client/ayon_core/tools/publisher/widgets/card_view_widgets.py
@@ -492,10 +492,22 @@ class InstanceCardWidget(CardWidget):
self._icon_widget.setVisible(valid)
self._context_warning.setVisible(not valid)
+ @staticmethod
+ def get_card_widget_sub_label(folder_name, task_name=None):
+ sublabel = "
"
+ sublabel += "{}".format(folder_name)
+ if task_name:
+ sublabel += " - {}".format(task_name)
+ sublabel += ""
+ return sublabel
+
def _update_product_name(self):
variant = self.instance.variant
product_name = self.instance.product_name
label = self.instance.label
+ folder_name = self.instance.get_folder_path().split("/")[-1]
+ task_name = self.instance.get_task_name()
+
if (
variant == self._last_variant
and product_name == self._last_product_name
@@ -513,6 +525,7 @@ class InstanceCardWidget(CardWidget):
for part in found_parts:
replacement = "{}".format(part)
label = label.replace(part, replacement)
+ label += self.get_card_widget_sub_label(folder_name, task_name)
self._label_widget.setText(label)
# HTML text will cause that label start catch mouse clicks