Implementing (Free) Templates in JIRA

Version 11.1 by Normann P. Nielsen on 2026/11/15 15:44

I've been working on Templating in JIRA, without spending (a lot) of money on a plugin for the 2000 user JIRA that I manage at work.

The first solution was making a TEMPLATE Project and use Clone Plus for cloning Issues to the real projects, but the main problem is that issues in the TEMPLATE project does not have the specific Custom Fields and Field Configurations for the real project, so tempates can be fully filled to a satisfying level before cloning the template issue to a real issue.

So, in the second attempt, I have created a lot of objects that works "in parallel" of the real isssues, in this case ITIL processes.

Success

The solution below works with the standard Clone function in JIRA, but is more flexible with the Clone Plus Plugin, which is not so expensive.

Especially, check out the possibilities in https://bobswift.atlassian.net/wiki/display/JCPP/clone-plus.properties

Topics

Template Issue Types

New Template Issue types created:

 Issue Type Template Issue Type
 Incident Incident Template
 Change Change Template
 Service Request Service Request Template

Workflow

Each Template is assigned to a very simple workflow:

Active
Closed
Text is not SVG - cannot display

The workflow has no real value, as cloning is always possible, so Its only a signal to the user and the status field can be used in filters.

Notifications

The workflow and Notifications is sending (virtually) no notifications at all, as this is pointless, so on Post functions the "Generic Event" is replaced with a new event "No Notifications" I have implemented under "Events" and "Notification Schemes"

Screens

As the template are created in real projects, all fields and field-configurations (and components) are present with the Template are created.

But, in the template we dont want some specific fields present, that are not relevant until cloning the Template to a real issue - typical Date and Person-related fields, so each Template has its own Screen Scheme and Sceen:

 Issue Type Screen
 Incident Incident Screen
 Incident Template Incident Template Screen
 Change Change Template
 Change Template Change Template Screen
 Service Request Service Request Screen
 Service Request Template Service Request Template Screen

Looking like this in JIRA:

Screen Shot 2014-06-05 at 08.54.07.png

with Operation(s):

Screen Shot 2014-06-05 at 08.55.32.png

A sample for the Incident Screens:

Summary
Description
Incident Type
Incident Manager
Components
Services
Incident Start
Incident End
Incident Screen
Incident Template Screen
Text is not SVG - cannot display
Error

A lesson learned the hard way here: Field not on the screen is not the same as the field being empty or none existing. Thus, cloning an "Inciden"t to an "Incident Template" will copy all fields, but they cant be seen afterwards.

Filters

In general, filters should exclude the "* Template" issuetypes.

Using Templates 

I use the templates in 2 ways - cloning them from a JIRA Dashboard and referencing them from Documentation in Confluence:

JIRA Dashboard

Screen Shot 2014-06-05 at 09.02.51.png

Documentation in Confluence

Here in the sample, a JIRA JQL selecting the correct "Incident Templates" are shown on the Incident Management Procedure:

Screen Shot 2014-06-05 at 09.07.04.png

Enhance Cloning for users

For JIRA, I have made a Custom Field of the Type "Message Custom Field (for view)" From the JIRA Toolkit, containing this code as "Default Value":

<div class="field-group aui-field-wikiedit comment-input"><a href='' target='_self' id='templatenclone' class='aui-button aui-button-primary aui-style'>Click to Clone</a></div><script>AJS.$(document).bind(JIRA.Events.NEW_CONTENT_ADDED, function(event, dialog) {AJS.$('#templateclone').attr('href','https://myserver.domain/secure/ClonePlusStart!default.jspa?id='+AJS.$('#key-val').attr('rel'));});</script>

Where the somewhat obscure code

AJS.$('#key-val').attr('rel')

Get the Issue ID in the database. Inprovements here could be nice!

Rendering on the "Incident Template" Screen, the Custom Field looks like (See Making a ADG like button):

Screen Shot 2014-06-05 at 16.04.15.jpg