Placeholders and where they can be used in SweetHawk Apps

Placeholders can be used in several SweetHawk apps in order to display information relative to a ticket. In each app, placeholders can be used in different ways...

Deadline & Duetime: Placeholders can be used to display details about a ticket when defining what the popup notification message will say either at the time of the deadline or in any of the other workflows.

Calendar: In the Calendar's settings, you can use placeholders in the default subject, description and location of an event. This information will then always be sent with every calendar event that you create. 

Approvals: Placeholders are used to reference the ticket fields that the approval has been requested on.

Reminders: Used to add extra details about a ticket into your reminder messages.

Notify: Used to create popup notifications with more context.


Using a placeholder

To use a placeholder, simply enter in any item in the following list by placing it in double curly braces like this {{}}. 

Ticket fields

  • ticket.title
  • ticket.description
  • ticket.comments_formatted
  • ticket.priority
  • ticket.status
  • ticket.ticket_field_(id)
  • ticket.ticket_field_option_title_(id)
  • ticket.assignee.custom_fields.(name)
  • ticket.requester.details
  • ticket.requester.custom_fields.(name)
  • ticket.organization.custom_fields.(name)

Remember to enclose each placeholder in double curly brackets: {{placeholder}}.

If a placeholder is invalid or not applicable, it will be removed from the final mapped value.

Where regular brackets () have been used like in this placeholder: ticket.ticket_field_(id), you'll need to replace both the regular brackets and their contents with what they're asking for. For example, the placeholder actually used would look like this: {{ticket.ticket_field_32224158}} 


Examples of how placeholders can be used:


As you can see here we've specified the placeholder {{}} in the Deadline app settings for what the popup notification will be:



As you can see below the, in the settings screen for the Calendar app, we've set the subject mapping to display the ticket id and the ticket title. Over on the right, when creating the event - the information is pulled from the ticket and displayed in the event details...



In the approval template creation screen, you can use placeholders to send information relative to the ticket to be approved. Placeholders used in this app also have the added functionality of locking the corresponding ticket fields once the approval has been sent out. This is to make sure that the information that is being approved always matches what is on the ticket. 



Was this article helpful?
1 out of 1 found this helpful



Please sign in to leave a comment.