How to create structures of linked Jira issues from templates

This article was originally published Aug 21, 2019 and updated on October 27, 2022.

Our daily routine consists of a lot of actions. We cook meals, read or watch the news, go to work, drive kids to and from school, work out, and so on. Just like in daily life, we also have to do many repetitive tasks at work. Looking from the Jira perspective, we need to create not only the repeated issues but usually also tasks and subtasks which they have to contain. Since these issues are (almost) the same every time, why not use Issue Templates for Jira? Having this app, we can create our recurring task (with subtasks) from a template we’ve prepared before. What’s more, we can create issues from linked templates in Jira. Both the main template and linked templates, together with their children tasks, melt into regular Jira issues. Sounds complicated? In this article, we’ll explain step by step how to build such a structure and benefit from it.

Linked issues in Jira

During our work in Jira, we often see the relations between issues. For example, a software tester has to test a feature so that the developers’ team could release a new version of the app. In this situation, one task blocks another, which is worth highlighting in Jira. For this reason, we choose a link type and add the right issue in the Linked Issues field on the Create Issue screen.

The Create Jira issue screen

There are several types of links, and we can also create our own ones. This option is available for Jira admins in Settings → Issues → Issue Features → Issue linkingBut what about creating a link between templates?

Creating a template structure

Right from the beginning, linking templates to each other was possible in Issue Templates for Jira. When we created a new issue from a template including links, those links were copied. However, instead of creating linked target issues, they were still directing to templates. Right now linked templates turn into issues in our target project

Epic structure 

Our feature comes in handy especially when we need to create templates for extended Epics. We start building the structure by creating an Epic.

Creating a structure of templates is no different than creating a structure of issues as you would normally do in Jira. App uses issues as the source of the templates, so in order to create Epic template with stories, sub-taks, links etc. If you are using Jira Premium you can create more levels of issue types and recreate them too!

All you need to do is create your issues and make sure that they are set as templates.

On issue view you will find “Use as a template” toggle in a panel opened by Template configuration button. All newly created issues in the Templates Repository are set as templates automatically, so you don’t need to worry about it, but it is good to know where you can change it and edit advanced settings.

Let’s see how we can use and benefit from such structures in our work.

Use cases

Planning a business trip is a complex task. Because we and our colleagues travel to trade shows, conferences, and workshops quite often, it’s convenient to have an Epic template instead of wasting time on creating similar issues again and again. Then we create a universal Business trip Epic template in our repository. Before every journey, we need to arrange different details like flight tickets and local transportation. After that, we can start searching for a hotel and choose the best place for our delegates. As you see below, this process is reflected in the Travel details story which blocks the Accommodation story

Travel arrangements are not the only ones we have to do by the time we go on a business trip. Since we’d like to promote our products or services during the event, we need to organize marketing-related details. Our marketing team is in charge of fulfilling such tasks, so we link their Business event template to our Business trip template. This way, we’ll know what we have to ask them for help before going to a trade show or conference. 

Planning the business trip

The time has come to plan the business trip. Then we open our Business travels project (BTR), proceed through Create from template process. Below on the right, we can see that our templates turned into issues in the target project, and the links remained the same as we set while creating the Epic template

A scheme of organizing Jira issues

The previously mentioned marketing team can have different sets of repetitive tasks in their daily work. For example, a new product launch campaign each time consists of pretty identical tasks and subtasks. Let’s take a further look into using Issue Templates for Jira in this case. The team starts with creating an Epic template called New product launch campaign. Now they add stories under it, like:

  • initial planning
  • social media campaign
  • a content campaign
  • a PPC campaign
  • the product’s landing page.

New product launch campaign

Every story contains a couple of subtasks that the team has to accomplish for a successful product launch. They can also set relations between the templates inside the Epic as well as link some of them with other Jira objects.

The whole Epic New product launch campaign is blocked by another Epic New product’s visuals. The marketing team can’t prepare the campaign without having proper graphics for social media channels, PPC banner ads, blog and landing page. The latter can’t go live without coding, so the team sets that the Copywriting – landing page subtask causes the Landing page coding story (an already created issue).

Creating extended Epic structure with linked Jira issues in Issue Templates for Jira Cloud

Implementing software systems

Our feature will be also useful for IT teams implementing software systems like Jira in big companies, which also requires physical infrastructure. Such activities consist of many repetitive tasks. Then the teams can create two Epic templates: Software system implementation including tasks like Planning and coordination of the implementationTarget departments’ trainingPreparing manuals, and the New hardware Epic with tasks such as Purchasing new server and Data migration. The Epic templates are linked with each other.

Issue Templates for Jira

Make your Jira issues error-free and use the power of templates in your organization. Try the app out for free for 30 days!

Issues from linked templates

Jira Cloud

There are slight differences in configuring this feature in Jira Cloud and Jira Server/Data Center. Children issues like stories and sub-tasks are always copied in Jira Cloud. If you are using default settings for the template’s scope, your links will also be copied. You can control whether your links should be copied by adding or removing Linked Issues from the template’s scope.

Once we’re ready to proceed, we go to the target project, we choose Create from template from the main bar select Apps, select target project, and set Epic as the issue type. Then we choose the template we’ve just made. Then click Confirm and Create issue dialog will be opened with fields autocompleted from the template. Scrolling down, we see that there aren’t any issues linked. We don’t have to worry because the links we set while composing the Epic template are invisible on the Create Issue dialog. We’ll surely see them when we already create our target issue. However, at this point, we can add some more links. The links added on all stages of our Epic creation will generate a structure based on the parent template configuration.

Jira Server: Create Structure post function

On Server and Data Center, the feature is realized as a post function added to your project’s workflow. Here are the steps you need to take to set it up:

  1. Go to Project Settings > Workflows.
  2. Select the workflow and go to Diagram > Edit.
  3. Click on a given transition (in most cases, this will be Create) and go to Post Functions.
  4. Click Add Post Function, select Deviniti [Issue Templates] – Create Structure, and set up the parameters (find an example of the screenshot below).
  5. Don’t forget to Publish the changes.
  6. Go to Project Settings > Screens, and then select your project’s Default Issue Screen.
  7. Add the Template field.
  8. Create a new issue.
  9. Select an Issue Type.
  10. Select the Template from the drop-down list.
  11. Fill in all of the other fields and click Create.
A screenshot of adding parameters to function in the Administration panel in Jira

As a result, the template will be applied to the newly created issue. Make sure that the Create Structure post function is listed under the step Create issue originally and before Re-index an issue. This is how you keep indexes in sync with the database. Otherwise, the post function might not work.

Note that this post function works on other transitions as well. Have a look here to see how to create new issues and apply templates to further workflow transitions.

More efficient work

Sets of repetitive activities exist in every type of work. Fortunately, we don’t have to create them from the very beginning every time we need to. Building large linked issues structures with Issues Templates for Jira solves this problem. Once it’s ready, we get an organized workflow in one click. Then, instead of worrying about planning tasks, we focus on cooperating with our team and meeting the objectives.

Try Issue Templates for Jira

Make every issue error-free and use the power of templates in your organization. Try it out today for free for 30 days!