Placeholders

Saturday, January 31, 2009 by Rich Armstrong

Snippets are a powerful feature of FogBugz, but many people don't know about placeholders in snippets.  These allow you to put a tag in your snippet text that will automatically be replaced with a value from the case.

The easiest way to see how these work is to see them in action. To do this, I created a test snippet which shows me all placeholders and the values they're replaced with.  Take the whole of the text below and copy it into a "test" snippet, then use it in a case (preferably one that's been emailed in).

A lot of folks ask us (as I asked when I first joined) why we don't have a snippet for extracting the first name out of the email's From address.  The simple answer is that this is not just a simple database value that we can pop into the text.  This will be one of my big wishes for future versions of FogBugz, but it won't be coming any time very soon.

Note that these placeholders work in outgoing autoreplies as well. Here's the snippet text: 

{case} (case) for the case ID
{sender} (sender) for the sender's email address
{subject} (subject) for the subject of the message
{ticket} (ticket) for the external ticket ID
{url} (url) for the URL of the FogBugz install
{ticketurl} (ticketurl) for an external link to the case
{ticket} (ticket) for the non-URL portion of the link.
{username} (username) for the name of the logged on user
{useremail} (useremail) for the email of the logged on user 
Categories: General | FogBugz
Tags:
Actions: E-mail | Permalink