{% translate "Contextual Reference" %}
{% translate "django-helpdesk provides a powerful way for you to embed fields from the current ticket or queue into your comments and ticket resolutions using a template language. It does this by leveraging the capabilities of Django's templating system with a sandboxed template context. Read more about" %} Django templating system
{% translate "Inserting Fields" %}
{% translate "For example, you may want to place the last escalation date into a ticket comment, or reproduce the original description sent to you by the submitter." %}
{% translate "In your comment, enter the field name surrounded by double curly braces. For example, to get the ticket title, use:" %}
{% verbatim %} {{ ticket.title }}{% endverbatim %}
{% translate "Queue Fields" %}
{% translate "The following fields are available in the template context to display the details of the queue to which this ticket belongs. Ex: to get the email address of the queue in your comment use" %} {% verbatim %}{{ queue.email_address }}{% endverbatim %}
-
queue.title
{% translate "The display title of the queue" %} -
queue.slug
{% translate 'The "slug" of the queue, a single-word lowercase identifier used in urls and e-mail subjects.' %} -
queue.email_address
{% translate "The e-mail address to which users can send an e-mail to open a new ticket automatically." %} -
queue.from_address
{% translate "The e-mail address from which the queue will send e-mails to submitters." %}
{% translate "Ticket Fields" %}
{% translate "The following fields are available in the template context to display the details of a ticket. Ex: to get submitter email use" %} {% verbatim %} {{ ticket.submitter_email }} {% endverbatim %}
-
ticket.title
{% translate "Title of the ticket, as provided by the submitter. A single line of text." %} -
ticket.created
{% translate "The time/date this ticket was first opened" %} -
ticket.modified
{% translate "The time/date this ticket was most recently changed" %} -
ticket.submitter_email
{% translate "E-Mail address of the ticket submitter" %} -
ticket.status
{% translate "Status of this ticket (Integer)" %} -
ticket.get_status_display
{% translate "Status of this ticket (Text-based)" %} -
ticket.get_status
{% translate 'Status of this ticket (Text-based, includes "On Hold" if required)' %} -
ticket.on_hold
{% translate "Indicates whether this ticket is on hold (True/False)" %} -
ticket.description
{% translate "The description of the ticket, eg the body of the e-mail sent or the problem entered by the submitter" %} -
ticket.resolution
{% translate "The resolution of the ticket provided by staff. This may be blank." %} -
ticket.priority
{% translate "The priority of this ticket (1-5, Integer only)" %} -
ticket.get_priority_display
{% translate "The priority of this ticket (Text-based)" %} -
ticket.last_escalation
{% translate "The time/date this ticket was last escalated" %} -
ticket.ticket
{% translate 'The ticket ID in form "[queue_slug-id]", used in e-mail subjects. For example, use' %}{% verbatim %} {{ ticket.ticket }}{% endverbatim %} -
ticket.ticket_for_url
{% translate 'The ticket ID in form "queue_slug-id", used in URLs' %} -
ticket.ticket_url
{% translate "Public URL for this ticket" %} -
ticket.staff_url
{% translate "Staff-only URL for this ticket" %} -
ticket.assigned_to
{% translate 'Name of the staff member assigned to this ticket, or "Unassigned" if it is unassigned.' %} -
ticket.queue
{% translate "Another dictionary of queue information, identical to queue above. For example, use" %}{% verbatim %} {{ ticket.queue.title }}{% endverbatim %}