Templates enables you to capture issues even faster during testing, by automatically populating fields in issues with your predefined values. Templates are remembered on your JIRA server, so your templates remain the same regardless of which browser you are testing in. Templates are also shared, so you can create one template that your whole team can use.
To create a new template, go to the "Templates" tab in the Bonfire browser extension, then click "Add Template" under the "Mine" section. Here you can pre-fill an issue creation form with any information you would like. (e.g. a particular project, version, or component you are working). Selecting the option "Attach Screenshot by Default" will include a screenshot attachment automatically when you are applying a template.
You can have as many templates as you like, so you can have very specific templates for issues that you may wish to raise during testing.
Templates are used when creating an issue. To do this, simply choose one from the "Use Template" menu on the Create Issue tab in the Bonfire browser extension. The "Use Template" menu will only show templates that you have marked as "Favourite" with a star (). By default, all templates you create are marked favourite for you.
Variables allow templates to contain dynamic information, and are only evaluated into actual values when the template is used during issue creation. Variables only work in templates. To use a variable, enter the variable name surrounded by braces ("{" and "}") into a template.
By default, Bonfire ships with four variables:
The default variables shipped with Bonfire are only a start, but you can create your own variables to do different things. To create another variable, simply click "Add Variable" in the Templates tab of the browser extension. For each variable, you need to provide 2 pieces of information:
Some other examples:
Name | Javascript Selector | Explanation |
---|---|---|
jiraVersion | document.getElementById('footer-build-information').innerHTML | This is one specific to JIRA itself. In our JIRA footer, we always include the JIRA version and build numbers. This javascript selector will get this information for us |
date | new Date().toDateString() | Today's date. |
selectedText | Chrome & Safari window.getSelection().toString(); Firefox document.getSelection().toString(); IE document.selection.createRange().text; | Will insert any text that's already selected. Note that the javascript for this differs across browsers, so you will need to create separate variables for each browser you wish to use this in. |
Once you have templates working the way you want, you can also opt to share it with your team by marking the "Share this template" checkbox.
Your teammates will now be able to see this template in their list of available templates to use.
If they "favourite" the template, it will be made available for use in their issue creation under the "Use Template" menu. Note - using a shared template will also include any variables which are included in the template.