2

Snippets are a way to quickly insert blocks of text you use frequently.

flag

1 Answer

1

Snippets can be used in any text field in a case, but they're most useful for replies to emails.

The snippet activation key defaults to `. It is changeable on a per-user basis in My Settings > Options. If you have a non-English keyboard layout, you might find the regular snippet key doesn't work. If so, just change to one of the other keys.

Let's say you've got this snippet, which you call, upgrade:

Hi there,

Thanks for reporting this bug! Fortunately, we've already fixed it in the most recent version of the software, Frogger [[version]].

If there's anything else we can do for you, or if upgrading doesn't fix the issue, please just reply to this email and we'll figure out what's going on.

{username} - Frogger Software

To activate it, you can either type the snippet name and then the snippet key:

upgrade`

Or you can type the snippet key twice, which will bring up a snippet search box.

The text from the upgrade snippet will be inserted, plus you can include one a placeholder like [[version]] per snippet. That portion of the text will be immediately highlighted, so the next thing you type will replace that text.

There are also placeholders, surrounded by curly braces, which will be replaced with features from the case or the user. You can even add your own placeholders via BugMonkey. We have developed a customization we use to extract the user's first name from their email.

Snippet Placeholders

There are also many placeholders you can put in snippets that will be replaced automatically. All of these are available for mailbox autoreplies, too:

  • {case} for the case ID
  • {sender} for the sender's email address
  • {subject} for the subject of the message
  • {ticket} for the external ticket ID
  • {ticket_singlecase} for the external ticket ID that only has access to the current case (not other cases submitted by the same person)
  • {url} for the URL of the FogBugz install
  • {ticketurl} for a link to the external case (e.g. http://try.fogbugz.com/default.asp?[ticket])
  • {ticketurl_singlecase} for a link to the external case (e.g. http://try.fogbugz.com/default.asp?[ticket_singlecase])
  • {username} for the name of the logged on user
  • {useremail} for the email of the logged on user

Snippet Administration

Snippets can either be personal to the user or global, if added as such by an administrator. Users often run into the problem that global snippets proliferate and become hard to manage. The search box and the notes field come in handy here.

Rather than offering some sort of snippet group administration interface, which would further complicate the product, we recommend putting a code in the Notes field for the global snippets. The user can then type this code in to the search box and restrict their snippets to that subset. For instance, the code KLN could be added to all Kiln snippets, and the code FBZ to all FogBugz snippets.

link|flag

Your Answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.