diff --git a/apps/tickets/models/ticket/general.py b/apps/tickets/models/ticket/general.py index 334e14f13..d0e8497c8 100644 --- a/apps/tickets/models/ticket/general.py +++ b/apps/tickets/models/ticket/general.py @@ -423,6 +423,8 @@ class Ticket(StatusMixin, JMSBaseModel): new_value = alias if alias else account new_values.append(str(new_value)) value = ', '.join(new_values) + elif name == 'org_id': + value = Organization.get_instance(value).name elif isinstance(value, list): value = ', '.join(value) return value diff --git a/apps/tickets/notifications.py b/apps/tickets/notifications.py index 3b48cdec7..51c8c75f9 100644 --- a/apps/tickets/notifications.py +++ b/apps/tickets/notifications.py @@ -94,7 +94,7 @@ class BaseTicketMessage(UserMessage): @property def basic_items(self): - item_names = ['serial_num', 'title', 'type', 'state', 'applicant', 'comment'] + item_names = ['serial_num', 'title', 'type', 'state', 'org_id', 'applicant', 'comment'] return self._get_fields_items(item_names) @property