Using Custom Attributes in Notification Templates

Is the Custom Attribute template tag tied to the custom attributes that are created for tickets? If so, how does one use that tag to grab one of the custom attributes? The directions in the help text aren't helpful. 

Tags custom-attributes notification-templates template-tags template templates notification attribute attributes custom-attribute
Asked by Ron Vallejo on Mon 2/29/16 5:29 PM Last edited Fri 11/4/16 4:15 PM
Sign In to leave feedback or contribute an answer

Answers (5)

This answer has been marked as the accepted answer
Jamey Stock Tue 3/1/16 11:29 AM

Hi Ron,

The only way that the CustomAttributes tag can be used in Ticket Notification Templates is by using formatting similar to that provided in the help text. Clicking on CustomAttributes from the dropdown will insert these start/end tags, although it does not insert the name or value tags.

Instead of using {{CustomAttributes}} like the rest of the attributes, you must insert the {{#CustomAttributes}} and {{/CustomAttributes}} tags with the {{Name}} and {{Value}} tags placed in between. The reason for this is that, unlike fields such as description, multiple custom attributes can be provided for a ticket. Due to this, a custom attribute "area" must be defined with the start/end tags instead of simply inserting one tag.

If no custom attributes have values provided for a ticket, then this section will not be rendered in the email. Otherwise, all of the ticket attributes with supplied values will be displayed in the notification. There is no way for specific custom attributes to be selected/included in the notification, and all attributes with provided values will be shown.

I hope this helps to explain why the CustomAttributes tag has different formatting, as well as how you can properly use it in ticketing email notifications. Please let us know if you would like additional clarification or there is anything else we can do for you.

Sincerely,
Jamey Stock
TeamDynamix

3 of 3 users found this helpful.

Matt Sayers Fri 3/30/18 7:34 PM

Hi Lucas,

Notification templates only include client-visible attributes. They will never include PCAs. The page help for notification does try to indicate the part about the client-visible:

The CustomAttributes field is a list of the client-visible custom attributes for the particular item.

Let me know if that helps.

1 of 1 users found this helpful.

Lucas Friedrichsen Fri 3/30/18 7:30 PM

This will e-mail values for ANY custom attribute correct, even those that are NOT set to "client visible"?

What about protected custom attributes? Do those get emailed also?

1 of 1 users found this helpful.

Mark Sayers Fri 3/30/18 1:13 PM

Hello Michaela,

Which notification template are you editing where you do not see the Custom Attribute tag in the Template Tags dropdown?

Sincerely,
Mark Sayers
TD Support

No feedback

Michaela Rolseth Fri 3/30/18 12:48 PM

Hello,

We do not have the Custom Attribute tag in the drop down menu. Can I still manually type it?

Thanks,

Michaela Rolseth

No feedback