You may find that your team’s workflow requires you and your colleagues to open the same type of case repeatedly with many of the fields populated in the same way. If that’s the case and you are using FogBugz On Site or FogBugz On Demand, you may find it helpful to generate a link to a template with those fields pre-populated.
For example, if you wanted to create a template for a case with the project, area, category, assigned to, and body fields pre-populated, you could sub in the appropriate values in this URL:
Any text values that you pass in as parameters (for example, as values for sTitle or sEvent) should be URL encoded.
Once you’ve generated the template link, you and your teammates can bookmark it to access the template case quickly in the future.
Note: Not all fields are writable using this method. Also, URLs do have length limits. We encourage notes in the edit field to use snippets as opposed to trying to put everything directly in the URL. This helps with readability as well.
When using FogBugz Ocelot, most custom fields may be set with URL-based templates. You’ll need the custom field index value and the name to determine the correct URL parameter. You can get both at the same time in the proper format by clicking “New Case”, then right-clicking on the field and selecting “Inspect Element” in Chrome or the equivalent in your preferred browser. Use the input ID value, which will be of the form <Field index value>_<Field name>. Then, set the parameter equal to what you want to see in the custom field.
For example, to set a drop-down box to “Dropdown value” and to check a true/false checkbox, you would first inspect these elements. In this case, let’s say the dropdown box has an input element ID of “15_dropdown” and the true/false checkbox of “16_truefalse”. After verifying that “Dropdown value” is a valid value for dropdown boxes, the following additional URL parameters tacked on to the example above should set these fields:
Note: as a grammar school teacher always says, spelling and capitalization counts!