A Halloween Treat

October 31st, 2008 by Rich Armstrong

I’ve got a treat to celebrate Halloween for all the FogBugz fans out there!

I had been intending on creating a blog post about how you can set the various options within a case entry form from within the query string of the URL.  Rather, I created a small submission form to show you how to do it.  I should warn you that I’m most decidedly not a web designer, so this thing is bare bones.  It’s so ugly it’s scary!

Zombie Watch

The big news here is the sEvent parameter.  We can pre-populate the new case submission form with templates for users to fill in.  Kudos to my coworker Adam for figuring this out. We also figured out (finally) how to set the From address on outgoing emails through the URL.

Constructing one of these URLs or forms requires going to the database or into the code of your submission page to figure out what value to give the parameters.  For the public submission page, the settable params are:

  • sTitle
  • ixProject
  • ixArea
  • sCustomerEmail
  • sVersion
  • sComputer
  • sEvent
For normal case creation:
  • ixProject
  • ixArea
  • ixFixFor
  • ixCategory
  • ixPriority
  • ixPersonAssignedTo
  • sTitle
  • sDueDate (in form 2008-10-31)
  • sDueTime (in form 13:00)
  • sVersion
  • sComputer
  • sEvent
  • hrsCurrEstNew
  • ixBugParent
For the Send Email form:
  • ixProject
  • ixArea
  • ixFixFor
  • ixPriority
  • ixPersonAssignedTo
  • sTo
  • sFrom
    • (e.g., &sFrom=%22Zombie%20Flanders%22%20%3Ccases@zombiewatch.fogbugz.com%3E)
  • sCc
  • sBcc
  • sTitle
  • sDueDate (in form 2008-10-31)
  • sDueTime (in form 13:00)
  • sVersion
  • sComputer
  • sEvent
  • hrsCurrEstNew
  • ixBugParent
This fits with numerous customer requests for the ability to set the outgoing email address, pre-populate email templates, etc, so we’re really happy to have figured all this out!
Happy Halloween!