Using templates overview
Users apply a template with the Template field. They choose a template by name, and Jira fills in the fields that the template defines. The app creates the field in Jira and keeps its options in sync with your templates.
Where the Template field appears
The Application scope of a template decides where Jira offers it:
- Create view: the Create work item dialog.
- Work item view: an existing work item, when a user edits it.
- Transition view: a workflow transition screen that contains the Template field.
The field must be on the screen the user sees. In a company-managed space, the app adds it to the Create screen and the Edit screen for you. In a team-managed space, and on transition screens, an administrator adds it. See Create a template.
Customers choose templates on the request form of the customer portal. See Customer portal templates.
Which templates the field offers
The field offers a template only when all of these are true:
- The template is assigned to the space and the work type of the work item.
- The template is enabled.
- The Application scope of the template includes the current view.
- Template restrictions don’t exclude the user. See Template restrictions.
If no template is available, Jira hides the field.
What happens when a user chooses a template
- Jira fills in every field that the template defines, and replaces the current value of those fields, including values the user typed and Jira defaults. Fields that the template leaves empty stay as they are.
- In the Create work item dialog and on a transition screen, Jira saves nothing yet. The values become part of the work item when the user creates it or completes the transition. Until then, the user can edit or remove any value.
- On the work item view, Jira saves the template and the values as soon as the user selects the template. There is no Save button.
- If the template has child templates, the app creates the child work items after the work item is saved. See Template structure.
What happens when a user changes or clears the template
- When the user chooses another template, Jira first empties the fields that the previous template defined, and then fills in the fields of the new one.
- When the user clears the Template field, Jira empties the fields that the previous template defined. On the work item view, this works only for a template that the user selected since the page was opened. After the page is reloaded, Jira keeps the values.
- Fields that the previous template didn’t define keep their values, even if the user entered them.
- When a user changes the work type in the Create work item dialog, Jira clears a template that isn’t available for the new work type. The values that the template already filled in stay.
In this section
- Create a work item from a template: apply a template in the Create work item dialog.
- Apply a template to an existing work item: apply a template on the work item view.
- Apply a template on a transition: apply a template during a workflow transition.
- Default template: fill in a template automatically.
- Direct link: share a link that opens the Create dialog with a template.