Gå til hovedindhold

Use advanced formatting - Videnbase / Using Deskpro - Deskpro Support

Use advanced formatting

Forfatterliste
 

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

{{ ticket.feedback_rating }}

Satisfaction rating

 

{{ ticket_object.person.getSummary }}

User summary

 

{{ ticket.person.date_created}}

Date of user creation

 

Hjælpsom Unyttig information

1 af 1 personer fandt denne side nyttig

Tilføj en kommentar

Log ind, eller opret dig for at skrive en kommentar.

Har du brug for en påmindelse om adgangskode?