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

Cloud

Server/Data Center

Version 8.x
Version 7.x
FAQ
Release notes
Articles & Videos
Last updated Apr 16, 2023

Use cases

Learn Issue Templates for Jira by analyzing real-life examples

We’ve prepared a few examples for you, showing most common use cases of Issue Templates. We start with the simplest case to give you an idea of how the app works. Every next scenario is more complex, so feel free to read the introductory chapters first, before you try to re-create the examples in your Jira instance.

Jira Issue Templates
Issue Templates for Jira

Use case - sport card benefit

Learn how to use Issue Templates by following a simple example

Let’s start with the simplest case. Say, you’d like to have a single template for requesting a Sport Card Benefit. The template will generate the same Summary and Description every time someone uses it to create an issue.

Create a template

Templates are like regular Jira issues, so the first thing you need to do is to create a single template issue.

Steps

To create a template:

  1. Click Create at the top of the screen to open the Create issue dialog box.
  2. In the Create Issue dialog box, select the Template Repository project - the default repository is called Templates.
  3. Choose Template as the Issue Type.
  4. Fill in the Summary and Description fields.
  5. Click Create.
Jira Issue Templates - Create a template
Issue Templates for Jira - Create a template

Configure a template

Your template is already working, but you might want to refine it. In order to manage it further:

  1. Go to Template Navigator.

  2. Click on the newly created template to open the Template Details panel to the right.

  3. Go to the General tab.

  4. Add a Template name
    The summary you provided while creating the template will automatically become your template’s name. You can change it if you wish, in order to easily find it later.

  5. Add a Category
    Adding a category to your template is also a good idea. It will help you organize greater numbers of template issues thanks to a dedicated display mode for it. It might become very helpful in the future as your template repository grows.

  6. Add a Description
    It is not mandatory but adding a short description could help your colleagues choose the right template for their task. It will appear on the Create Issue screen, right below the Select Template field.

    Jira Issue Templates - Manage Template Details
    Issue Templates for Jira - Manage Template Details
  7. Choose a Set of fields
    Decide which Jira fields should be automatically filled in on the Create Issue screen in issues generated by this template. There is always a default set that you can use, but you may decide to add fields separately. Summary and Description will be enough for this simple case.

    Jira Issue Templates - Manage Template Details
    Issue Templates for Jira - Manage Template Details
    Info

    Read more about Set of fields here.

  8. Manage the Availability
    Choose where your template should be available. By default, it will be selectable on the Create Issue screen. If you wish to make it available on the Customer Portal, turn on the switch right next to Request Form.

    Jira Issue Templates - Manage Template Details
    Issue Templates for Jira - Manage Template Details

Configure a project

In order to use your template, you need to add the Template field to the Create Issue screen of your target project. You can either configure all projects at once in the initial project configuration panel, or you can add the Template field to each project separately.

Configure all projects at once

You can access the initial project configuration panel at any time.

Steps

To add the Template field to the Create issue screen in one or more projects:

  1. Go to Issue Templates in the upper navigation bar.
  2. Select Get Started.
  3. Click through the Onboarding steps until you arrive at the Configure project screen.
  4. Click the plus icon next to the selected projects.
Jira Issue Templates - Initial Project Configuration
Issue Templates for Jira - Initial Project Configuration

Configure one project at a time

You may want to add the Template field to a screen in one project only. This way is particularly useful when you wish to add the Template field to other screens, like the Edit issue screen.

Steps

To add the Template field to a screen in one project:

  1. Open the project, where your template should be used and go to the Project settings.
  2. Go to Screens and select the screen. (In this example we’ll choose the Create Issue screen).
  3. Select the Template field in the lower search bar and click Add.
Jira Issue Templates - Add Template Field to Screen
Issue Templates for Jira - Add Template Field to Screen

Result

Every time someone creates an issue in this project they will be able to select a template from a drop-down list.

Create an issue using a template

Now you can create the first issue using your template:

Steps

  1. Go to the project where your template should be applied.
  2. Click the Create button.
  3. Navigate to the Template field and expand the drop-down list.
  4. Select your template from the list.

Result

Summary and Description have been populated by your template in the new issue.

Jira Issue Templates - Apply Template
Issue Templates for Jira - Apply Template

Use case - Adding fields upon a transition

See an example of a Default Template used in a software project

Previous chapter showed us a simple example of a single default template. Now, let’s explore other functionalities of the Default Template feature.

Say, we want to add release notes to an epic right before the release. We’ve got a separate template to create the epic - it’s applied upon the Create transition and generates additional linked issues thanks to the Create Structure postfunction. It doesn’t include any field for release notes, since we don’t want to clutter our tickets with empty fields, until they’re necessary.

With Default Template we can apply a separate template, only to the epic issue, upon the Done transition. The template will add a custom field to the transition screen and auto-complete it with a basic draft of our release notes.

Create the custom field

We’re going to need a special custom field in order to add it to our template, so let’s start with that.

  1. Let’s go to the project settings of our New App project and under Fields > Custom fields let’s add the custom field Text Field (multi-line) with a name Release notes:

    Jira Issue Templates - Default Template use case: Create a custom field
    Issue Templates for Jira - Default Template use case: Create a custom field

  2. Next, we need to add our Release notes custom field to both the Templates (TEMP) project and the New App (APP) project, and then add it do relevant screens:

    • TEMP: Templates Field Screen

    • APP: Released Screen

      Jira Issue Templates - Default Template use case: Create a custom field
      Issue Templates for Jira - Default Template use case: Create a custom field
    Tip
    Let’s not forget to add the Template field to the APP: Released Screen.
  3. Finally, let’s associate the APP: Released Screen with the final transition in our project, that is, the one leading from Waiting for release to Released.

    Jira Issue Templates - Default Template use case: Add screen to a transition
    Issue Templates for Jira - Default Template use case: Add screen to a transition

Create a template

Now, we need prepare a template that we’ll use as the default.

  1. Let’s create a Release Notes Template under Issue Templates > Manage Templates (issue type: Template):

    Jira Issue Templates - Default Template use case: Create a template
    Issue Templates for Jira - Default Template use case: Create a template

  2. Then, under the Fields tab, we need to create a separate set of fields add the Release notes custom field to the template:

    Jira Issue Templates - Default Template use case: Add the custom field to the template
    Issue Templates for Jira - Default Template use case: Add the custom field to the template

  3. Finally, let’s provide a default value for our Release notes custom field:

    Jira Issue Templates - Default Template use case: Provide a value for the custom field
    Issue Templates for Jira - Default Template use case: Provide a value for the custom field

Info

Read more on creating templates in the Create a template chapter.

Select the template as default

Our template is ready and we can associate it with the Epic issue type in our project. Let’s go to the New App project settings and select Issue Templates > Default Templates.

There, we’ve got three steps to follow:

  1. Select the Release Notes Template from the list.

  2. Choose the Epic issue type.

  3. Choose when the template should be applied, which in our case means the Released transition.

    Jira Issue Templates - Default Template use case: Select the template as default
    Issue Templates for Jira - Default Template use case: Select the template as default

Configure template’s visibility

Now it’s time to set up the template’s visibility. Since we probably won’t need to change this template to a different one, we may leave this option disabled:

Jira Issue Templates - Default Template use case: Configure template's visibility
Issue Templates for Jira - Default Template use case: Configure template's visibility
Note

Remember that this setting affects all projects in your Jira instance.

Result

Default Template is applied automatically on our Release transition screen:

Jira Issue Templates - Default Template use case: Result
Issue Templates for Jira - Default Template use case: Result
Info

You’ll find more detailed instructions in the main Default Template chapter.

Use case - Guest Wi-Fi access

Learn how to use variables using a real-life example

Using variables can help you speed up many repetitive support tasks. Let’s take requesting access to the corporate Wi-Fi as an example. We can use three system variables that will get filled in automatically:

$TODAY - will be replaced by the current date
$USER_NAME - will insert the name of the issue reporter
$CURRENT_USER_MAIL - will insert the email address of the issue reporter

We can also create three other user variables. They will turn into blank fields on the issue create screen, so that users requesting access will need to fill them in:

[NAME] - in this particular configuration: first name of the guest
[SURNAME] - in this particular configuration: last name of the guest
[DEVICE_ID] - in this particular configuration: ID of the laptop or mobile device that will be used to access the company’s network

Jira Issue Templates - Variables
Issue Templates for Jira - Variables

Result

All the user needs to do in order to raise the request is simply to fill in three fields:

Jira Issue Templates - Variables
Issue Templates for Jira - Variables
Note

Use case - Issue creation criteria

Let’s create a number of subtasks under a story for onboarding new employees. Then, we’ll add a checklist to the Create issue screen. Thanks to this, hiring managers and HR employees will be able to decide which subtasks to create by choosing them from a checklist depending on their needs.

Creating templates

First, we need to prepare templates that will be applied according to JQL conditions.

Steps

  1. In the Template Repository project, create a story template.
  2. Under the new story click More > Create subtask.
  3. On the Create issue screen select the issue type: either subtask or subtemplate.
Info

Read more on creating templates in the Create a template chapter.

Result

A story template with subtasks is created:

Jira Issue Templates - JQL criteria for creating issues from templates: Jira subtask template
Issue Templates for Jira - JQL criteria for creating issues from templates

Use case - Availability

In this scenario there are several projects and two teams are located in different countries. You’d like to create a template available only for German and Polish speakers.

Steps

  1. Create a template or use an existing one.

  2. Open your template.

  3. Go to Issue Templates Details > Availability.

  4. Click the arrow to expand Create Issue Screen options.

  5. Hover your cursor over Language field and click the pencil icon to edit it.

  6. Select Polish and German in the Languages tab and apply changes.

Note

If you want your template to be available on the Customer Portal, remember to switch on the toggle next to Request form.

Result

Template’s availability is limited to the specified language groups.

Use case - Jira Webinar

See an example of how to use Create Structure in a project

Let’s use the Create Structure post function to organize a webinar for developers. We’ll create an epic with stories, subtasks and variables, so we’d better start with some initial configuration.

Info

You’ll find more information about the post function parameters and all possible configuration modes in the Create Structure configuration chapter.

Configure fields and screens

First of all, we need to have proper fields available on our Create issue screen.

Steps

  1. Open Template Repository project settings and select Screens.
  2. Go to TEMP: Templates Field Screen.
    Jira Issue Templates - Add Fields to Create Screen
    Issue Templates for Jira - Create Structure: Add Fields to Create Screen
  3. Add new fields. (In our example: Template and Epic Name).
  4. Drag and drop to rearrange the fields in the desired order.
    Jira Issue Templates - Create Structure: Add Fields to Create Screen
    Issue Templates for Jira - Create Structure: Add Fields to Create Screen

Add issue types

By default, there are only two issue types in the Template Repository (TEMP): Template and Sub-template. If we want to build a more complex structure, we need to add other issue types manually.

Steps

  1. In the Template Repository project settings, select Issue Types.

  2. Go to Actions > Edit issue types.

    Jira Issue Templates - Create Structure: Add Issue Types
    Issue Templates for Jira - Create Structure: Add Issue Types

  3. Drag and drop desired issue types (in our case: epic and story) from the table on the right to the one on the left.

  4. Click Save.

    Jira Issue Templates - Create Structure: Add Issue Types
    Issue Templates for Jira - Create Structure: Add Issue Types

Create an epic

Now that the initial configuration is ready, we can create our templates. Let’s start with an epic.

Steps

  1. On the Create issue select Templates (TEMP) as the project and epic as the issue type.
  2. Fill in the fields you’d like to be autofilled in your future projects.
  3. Click Create at the bottom of the form.
Jira Issue Templates - Create Structure: Jira epic template
Issue Templates for Jira - Create Structure: New Template Issue

Define the set of fields

Next step is to decide which fields should be autofilled by the template in the target issue.

Steps

To define the set of fields of the template:

  1. Select your epic template in the Template Navigator.
  2. Open the Fields tab.
  3. Start typing to add fields that should be filled in from the template (in our case: Summary, Description, Priority, Labels).
Jira Issue Templates - Create Structure: Jira epic template
Issue Templates for Jira - Create Structure: New Template Issue
Tip
  • The Default set of fields will disappear once you add your first field.
  • Learn more about defining the template’s scope in the Fields chapter.

Add variables

Now you can add variables to your epic and make them global - which means that they will be available in all the templates. Thanks to that, values once provided by the user on the Create issue screen will be replaced in every issue in the structure.

Steps

  1. Reopen the epic template by clicking its issue key.

    Jira Issue Templates - Jira epic template: Add variables to a structure of issues
    Issue Templates for Jira - Create Structure: Add variables to a structure of issues

  2. In the Variables panel, click New variable.

    Jira Issue Templates - Jira epic template: Add variables to a structure of issues
    Issue Templates for Jira - Create Structure: Add variables to a structure of issues

  3. Give your variable a name (in our case it will the topic of the webinar).

  4. Check the box next to Available in other template issues to make your variable global.

    Note

    This option is available only for administrators of the Template Repository (TEMP) project. If you’re not one of them, you may skip this step as we’ve got a workaround for you in the next section.

  5. Click Save.

    Jira Issue Templates - Create Structure: Add variables to a structure of issues
    Issue Templates for Jira - Create Structure: Add variables to a structure of issues

  6. Copy the variable to clipboard by clicking the copy icon.

  7. Paste it into the Summary.

  8. (Optionally) Paste it into the Description.

    Jira Issue Templates - Create Structure: Add variables to a structure of issues
    Issue Templates for Jira - Create Structure: Add variables to a structure of issues

  9. Repeat with two additional variables: MONTH and YEAR.

    Jira Issue Templates - Create Structure: Add variables to a structure of issues
    Issue Templates for Jira - Create Structure: Add variables to a structure of issues

Note
  • Read on to learn how to add the same variables to other templates in the structure.
  • Learn more in the Variables chapter.

Create a story

Now it’s time for Stories - more specific issues that will bind together related subtasks.

Steps

To create a template story with variables:

  1. In the newly created epic, click the plus icon next to Issues in Epic.

    Jira Issue Templates - Create Structure: Create a Jira user story template with variables
    Issue Templates for Jira - Create Structure: Create a story with variables

  2. Fill the fields and click Create.

    Jira Issue Templates - Create Structure: Create a Jira user story template with variables
    Issue Templates for Jira - Create Structure: Create a story with variables

  3. Open the story by clicking its issue key.

    Jira Issue Templates - Create Structure: Create a Jira user story template with variables
    Issue Templates for Jira - Create Structure: Create a story with variables

  4. In the Browse all available variables search field, type in the name of the global variable you’ve defined in the epic (in our case: TOPIC).

  5. Click the plus icon to add the variable to the story template.

    Jira Issue Templates - Create Structure: Create a Jira user story template with variables
    Issue Templates for Jira - Create Structure: Create a story with variables

  6. Repeat with your other global variables.

  7. Copy the variables and paste them into the Summary (and any other text fields where you need them).

    Jira Issue Templates - Create Structure: Create a Jira user story template with variables
    Issue Templates for Jira - Create Structure: Create a story with variables

  8. Repeat the whole process to create as many stories as you need. In our example we’ve got Presentation, Mailing and Social Media.

    Jira Issue Templates - Create Structure: Create a Jira user story template with variables
    Issue Templates for Jira - Create Structure: Create a story with variables

    Tip

    If you don’t have administrative permissions for the Template Repository (TEMP) project, here’s a workaround:

    • Create a new variable with exactly the same placeholder (in our case: TOPIC).
    • Add the variable to where you need in the text.
    • Repeat in all the templates in this structure where you want to use the same variable.

    Result: When you (or your colleagues) will provide a value while creating the target issue, it will be replaced in all the variables having the same placeholder across the entire structure.

Create subtasks

Now let’s create subtasks and see how they can be linked to each other.

Steps

  1. Open the newly created story (in our example: Presentation).

  2. Go to More > Create subtask.

    Jira Issue Templates - Create Structure: Create a Jira subtask template
    Issue Templates for Jira - Create Structure: Create linked subtasks

  3. Fill in the fields and click Create.

    Jira Issue Templates - Create Structure: Create a Jira subtask template
    Issue Templates for Jira - Create Structure: Create linked subtasks

  4. Create another subtask to be linked with the previous one and select Link from its three dots menu.

    Jira Issue Templates - Create Structure: Create a Jira subtask template
    Issue Templates for Jira - Create Structure: Create linked subtasks

  5. Choose the relation (in our case the first subtask is related to the presentation’s content and must be completed before other colleagues start working on the visual aspects of our webinar: graphics and presentation slides, so the first task is blocked by the second one).

  6. Click Link.

    Jira Issue Templates - Create Structure: Create a Jira subtask template
    Issue Templates for Jira - Create Structure: Create linked subtasks

Result

We’ve created a structure of issues, with an epic, stories, and linked subtasks. You can preview it in the Template Navigator under the Relations tab.

Jira Issue Templates - Create Structure: Relations tree
Issue Templates for Jira - Create Structure: Relations tree
Tip

If you’d like only your main template (for example epic) to be visible on the create issue screen, just disable all subordinate issues (it doesn’t apply to subtasks). Read more about it in the Availability chapter.

Add the post function

Now that our template structure is ready, we can use it to create issues in our target project. First, we need to add the Create Structure post function to the workflow.

Steps

To add the post function:

  1. Open your target project.

  2. Go to Projects Settings > Workflows.

  3. Select the default workflow and click on the edit icon under Actions.

    Jira Issue Templates - Create Structure: Add Post Function
    Issue Templates for Jira - Create Structure: Add Post Function

  4. Click on the first transition (Create) and go to Post Functions.

    Jira Issue Templates - Create Structure: Add Post Function
    Issue Templates for Jira - Create Structure: Add Post Function

  5. Click Add Post Function and select Deviniti (Issue Templates) - Create Structure.

    Jira Issue Templates - Create Structure: Add Post Function
    Issue Templates for Jira - Create Structure: Add Post Function

  6. Leave the default attributes unchanged and click Add.

    Jira Issue Templates - Create Structure: Add Post Function
    Issue Templates for Jira - Create Structure: Add Post Function

  7. Remember to Publish the changes.

    Jira Issue Templates - Create Structure: Add Post Function
    Issue Templates for Jira - Create Structure: Add Post Function

  8. Go to Project Settings > Screens and select your projects Default Issue Screen.

  9. Add the Template field.

Jira Issue Templates - Create Structure: Add Post Function
Issue Templates for Jira - Create Structure: Add Post Function

Create issues from the template structure

Now, we are all set to create our structure of issues:

Steps

  1. Select the project you’ve set up before.
  2. Select the Issue type (in our case epic).
  3. Select your template from the drop-down list (in our case Jira Webinar).
  4. Define the variables and click Replace values in fields.
  5. Once the variables are replaced, click Create.
    Jira Issue Templates - Create Structure: Add Post Function
    Issue Templates for Jira - Create Structure: Add Post Function

Result

We’ve created a template that can be reused anytime to quickly set up a structure of issues:

  • Stories are listed under the epic
  • Subtasks appear under stories
  • Variables got replaced in the entire structure

Jira Issue Templates - Create Structure
Issue Templates for Jira - Create Structure
Jira Issue Templates - Create Structure
Issue Templates for Jira - Create Structure

Follow up

Use Case - Canned Responses for Service Management

Learn how to automate a common workflow with canned responses

Let’s see how a standard application access request can be improved with canned responses added from templates.

We will add comments on different workflow transitions, so that the end user will get the most adequate response, depending on the outcome of their request.

Template with the initial confirmation message

First, we’re going to create a template with the initial message that every customer will receive after submitting their issue. In order to add the comment we need to open the extended view of our template and add our message in the comment section, just as we would do with a regular comment:

Steps

  1. Create a new template or use an existing one.
  2. Open the template’s issue view.
    Jira Issue Templates - Canned Responses for Service Management: Add a Comment
    Issue Templates for Jira - Canned Responses for Service Management: Add a Comment
  3. Go to the Comment section and type in the message you’d like to show to your customers.
  4. Click Add.
    Jira Issue Templates - Canned Responses for Service Management: Add a Comment
    Issue Templates for Jira - Canned Responses for Service Management: Add a Comment

Set of fields

Next, we need to add the Comment field to our Set of fields.

Steps

  1. Open the template in the Template Navigator

  2. Go to the Fields tab.

  3. Start typing to find the Comment field.

  4. Select the Comment field from the drop-down list.

  5. Confirm your selection by clicking the check mark to the right.

    Jira Issue Templates - Canned Responses for Service Management: Add a Comment
    Issue Templates for Jira - Canned Responses for Service Management: Add a Comment

Availability

If we want the comment to be visible to customers, we need to make the template available on the Customer Portal.

Steps

  1. Go to the Availability tab.

  2. Turn on the toggle next to Request form.

    Jira Issue Templates - Canned Responses for Service Management: Make the Comment Available on the Customer Portal
    Issue Templates for Jira - Canned Responses for Service Management: Make the Comment Available on the Customer Portal

Create Structure post function

Now we need to configure our target project. The Create Structure post function will make it possible to copy the comment from the template.

Steps

  1. Open your target project (in our case: IT Support).

  2. Go to Project settings > Workflows.

  3. Select the default workflow and click on the pencil icon under Actions.

    Jira Issue Templates - Create Structure: Add Post Function
    Issue Templates for Jira - Create Structure: Add Post Function

  4. Click on the chosen transition and go to Post Functions.

    Jira Issue Templates - Create Structure: Add Post Function
    Issue Templates for Jira - Create Structure: Add Post Function

  5. Click Add Post Function

    Jira Issue Templates - Create Structure: Add Post Function
    Issue Templates for Jira - Create Structure: Add Post Function

    and select Deviniti (Issue Templates) - Create Structure in the following mode:

    • Operation mode: Modify current issue
    • Template: (Select the template you’d like to use)
    • Subtask stage: none
    Jira Issue Templates - Canned Responses for Service Management: Post Function Configuration
    Issue Templates for Jira - Canned Responses for Service Management: Post Function Configuration
  6. Remember to Publish your changes.

    Jira Issue Templates - Create Structure: Add Post Function
    Issue Templates for Jira - Create Structure: Add Post Function

Tip

Make sure that the Create Structure post function is listed under the step Creates issue originally and before Re-index an issue to keep indexes in sync with the database.

Jira Issue Templates - Create Structure: Add Post Function
Issue Templates for Jira - Create Structure: Add Post Function

Result

The comment is automatically added to issues created from your template:

Jira Issue Templates - Canned Responses for Service Management: Comment Added Automatically to an Issue
Issue Templates for Jira - Canned Responses for Service Management: Comment Added Automatically to an Issue
Need help?

If you can’t find the answer you need in our documentation, raise a support request.