Skip to main content

Use advanced formatting - Knowledgebase / Using Deskpro - Deskpro Support

Use advanced formatting

Authors list
 

When setting the value for certain fields with triggers you may see an option 'Use advanced formatting'.

image.png

This setting allows you to leverage system variables and the twig templating engine

Advanced formatting can be used to update: 

  • Subject

  • Single line text

  • Multi line text

  • Date

  • Date/time

​ 

Text fields and the ticket subject field accept all available variables. ​

The ticket date and date/time fields will only accept date and date/time respectively in a specific format.

Variable

Output

Notes

{{ ticket.id}}

ticket ID number

 

{{ ticket.subject}}

ticket subect

 

{{ ticket.agent_team.name }}

agent team

The team of the agent the ticket is assigned to when the trigger runs

{{ ticket_object.getagent }}

Ticket agent

The agent the ticket is assigned to when the trigger runs

{{ ticket.person.name }}

Ticket user

 

{{ ticket.field# }}

Custom ticket field value

Replace the # with relevant ticket field ID

{{ ticket.person.field# }}

Custom user field value

Replace the # with relevant user field ID

{{ now|date("m/d/Y") }}

Current date

this can be used with date fields

{{ now|date_modify("-90 day")|date("m/d/Y") }}

Current date - 90 days

this can be used with date fields

{{ ticket_object.agent.getCustomDataForField(#).input }}

User field for agent assigned to ticket

Replace # with user field ID number

Helpful Unhelpful

1 of 1 people found this page helpful

Add a comment

Please log in or register to submit a comment.

Need a password reminder?