Skip to main content

Apply issue template

The Apply issue template action applies a template to a work item that already exists: it fills in the work item's fields from the template and can add the template's subtasks, child work items and links to it. To create a new work item instead, use Create issue from template.

Jira Automation rule with the Apply issue template action
Automation rule using the Apply issue template action
Summary and Description are overwritten

If the template has a Summary or a Description, the rule replaces the work item's own, and this cannot be undone. To keep them, uncheck Summary and Description on the template's Fields tab in the Issue Templates panel. That setting applies to every use of the template, not only to this rule.


Add the action to a rule​

Adding the Apply issue template action to a Jira Automation rule
Selecting the Apply issue template action
  1. Open Automation

    Go to Space settings → Automation, and create a rule or open one.

  2. Add the action

    Add an action step, search for Apply issue template and select it. Jira lists it under Other apps.


Set the action's fields​

Configuration screen for the Apply issue template action with the Issue Template picker and the Issue key field
Configuring the template and issue key
FieldWhat it does
Issue TemplateThe template to apply. It must be turned on and available in the work item's space (Template Availability); otherwise the action fails and the rule's audit log shows why.
Issue keyThe work item the template is applied to: {{issue.key}} by default, the rule's own work item. It is the only field that takes smart values, so a rule can also target another work item, such as the parent with {{issue.parent.key}}.
Create subtasksShown when the template has subtasks. Checked by default; uncheck it to apply the template without them. Subtasks are added only to a story, task or other standard work item.
Create child issuesShown when the template is an Epic with child work items. Checked by default. Child work items are added only to an Epic.
Create issue linksShown when the template has links. Checked by default.

Check what a run changes​

When the rule runs, the action changes the work item in the Issue key field:

  • every field that has a value in the template overwrites the work item's own, Summary and Description included
  • fields the template leaves empty, fields unchecked on the template's Fields tab, and fields the work item's screens do not offer keep their values
  • dynamic fields, such as relative dates and the active sprint, are worked out at that moment
  • the work item's Issue Template field is set to the applied template, when the field is on the work item
  • the template's attachments are copied, skipping files the work item already holds
  • the checked subtasks, child work items and links are added

The work item keeps its key, work type, space, parent and reporter. The result matches Apply template on the work item, with two differences: placeholders in the template's Summary and Description, such as {Employee name:textfield} (dynamic text fields), are copied as written, because no one sees the form that asks for them; and a Creator dynamic value means the account the action is connected as, not the person who triggered the rule.

When a part of the template cannot be added, the action fails and the rule's audit log names it. Every run appears in the template's usage history.