I have defined a Ticket Notification to email relevant Agents when a ticket is created (below). If a Customer completes the Activity Dialog in the Customer interface the Ticket Notification works as expected. However, if an Agent completes the Dialog in the Agent interface, defining a CustomerID, the content of "Description:" in the notification email is "No Body," regardless of what was entered into the Article Text field.
If I change the definition of "Description:" to instead be <OTRS_AGENT_BODY> the the notification works for Agent-submitted tickets, but Customer-submitted tickets now have a "Description:" value of "-". How can I modify the Ticket Notification to return the Body value for both scenarios? Thank you.
Code: Select all
---
- ChangeBy: '35'
ChangeTime: 2020-09-15 09:32:29
Comment: ''
CreateBy: '2'
CreateTime: 2015-08-05 12:59:18
Data:
ArticleAttachmentInclude:
- '0'
Events:
- TicketCreate
IsVisibleForCustomer:
- '1'
LanguageID:
- en
QueueID:
- '6'
RecipientRoles:
- '2'
Search_DynamicField_Status:
- Queue
TransportEmailTemplate:
- Default
Transports:
- Email
VisibleForAgent:
- '0'
ID: '8'
Message:
en:
Body: '<span style="font-family:verdana,geneva,sans-serif"><span style="font-size:12px">A
new <span style="font-family:verdana,geneva,sans-serif"><span style="font-size:12px"><OTRS_TICKET_Queue>
ticket </span></span>was submitted: <OTRS_TICKET_TicketNumber><br />
<br />
<OTRS_CONFIG_HttpType>://<OTRS_CONFIG_FQDN>/<OTRS_CONFIG_ScriptAlias>index.pl?Action=AgentTicketZoom;TicketID=<OTRS_TICKET_TicketID><br
/>
<br />
<br />
Subject: <OTRS_TICKET_Title><br />
<br />
Description: <OTRS_CUSTOMER_BODY><br />
<br />
<br />
Submitter: <OTRS_CUSTOMER_REALNAME><br />
Site: <OTRS_TICKET_DynamicField_Site_Value><br />
Bldg / Suite: <OTRS_TICKET_DynamicField_BldgSuite_Value><br />
Priority: <OTRS_TICKET_Priority><br />
Requested Completion Date: <OTRS_TICKET_DynamicField_RequestedCompletionDate_Value></span></span>'
ContentType: text/html
Subject: 'Unex Help Desk Dev: New <OTRS_TICKET_Queue> Ticket Submitted'
Name: Agent::TicketCreate-CS
ValidID: '1'