Apps documentation
Issue Templates for Jira
Cloud Server/Data Center
Issue Templates for Jira

Cloud

Server/Data Center

Documentation
FAQ
Release notes
Articles & Videos
Last updated Sep 20, 2021

Apply template post function

This page provides information how to use apply template post function

Apply template post function allows you to automatically complete fields with values from a template after the transition is performed. While adding a post function you can select a relevant template, which will be applied to already created issue. This post function works exactly the same as apply template feature.

Before you start

Prepare the template, make sure to edit template’s scope.

Info
For more information, see the Template configuration and Template scope chapters.

Steps

  1. To apply this template to every newly-created issue, go to Project settings > Workflows
  2. Click the pencil icon to edit the chosen workflow.
    Issue Templates for Jira Cloud: Default templates
    Default templates
Note

If you want to apply different templates for different issue-types you need to split the workflow.

  1. Click Create to edit the initial transition.

    Tip
    You can add a post-function to different transitions and it can create sub-tasks or complex structures.

  2. Click Post function.

    Issue Templates for Jira Cloud: Default templates
    Default templates

  3. Click Add post function.

    Issue Templates for Jira Cloud: Default templates
    Default templates

  4. Select Apply template.

  5. Click Add.

Issue Templates for Jira Cloud: Default templates
Default templates
  1. Select the template you want to use as default.

  2. Click Add.

    Issue Templates for Jira Cloud: Default templates
    Default templates

As a result, it will be added to the transition.

  1. Click Publish Draft.
    Issue Templates for Jira Cloud: Default templates
    Default templates

Result

When an issue is created, the assigned template will be automatically applied. For fields defined in the template’s scope, values from the template will be copied to the issue. If the template issue has children issues or linked issues, they will also be recreated.

Note
Template is applied asynchronously, it may take a few seconds for the results to be seen.
Issue Templates for Jira Cloud: Default templates
Default templates
Issue Templates for Jira Cloud: Default templates
Default templates