Set up your template in the context of other issues and projects
In the Context tab you can determine the way your template works in other projects. You may want to automatically generate subtasks from a template, create issues in different projects, or use JQL criteria to create an issue.
Scroll down to see descriptions of each option:
Target project and issue type
If you want your template to create new Jira issues in a different project, choose the project and the issue type of those future issues. They will be created together with the issue generated by your template.
This feature is particularly useful for complex processes, like a new employee onboarding. One Story of an Epic can be automatically created in an HR project and the other one in an IT Support project, together with all subtasks related to hardware, accounts and access rights.
Issue creation criteria
Here you can configure conditions for creating issues from their parents (stories from an epic and subtasks from a story). Learn more in the next section.
Copy subtasks
By default, all subtasks from your template will be generated together with the new issue. Switch off the toggle if you’d like to stop them from being created (they will not be deleted - only disabled).
Subtasks always get created in the same project as their parent issue.
You can set up conditions for issue creation using JQL. The children issues will be created only when their parent issue fulfills the criteria. This mechanism works for:
Other issue links (for example between a story and a task) are not supported. The Context tab is available Template details view only for:
All possible JQL queries are supported, allowing you to set very specific conditions. For example, you can require that a subtask gets created only if:
See the use case in which a template with subtasks is created only when their parent issue fulfills custom JQL criteria - Issue creation criteria
Now let’s create a checklist that will determine which subtasks should be created each time the story template is applied.
The checklist is added to the Create issue screen.
Now it’s time to activate our template. We also need to add the newly created custom field to the template’s set of fields.
To enable the template:
The template is set up to work on the Create issue screen.
With our checklist ready, we can now set JQL conditions in every subtask, so that it will only get created when its corresponding checklist option is selected.
"Onboarding checklist" in ("Office tour")
."Onboarding checklist" in ("Summary of the subtask")
.The conditions are set.
Finally, we can use our template to create selected issues in the target project.
Only selected subtasks got created in your target project.
Information about the creation of every subtask will be visible in the app notification and in the Event log. Even if the subtask hasn’t been created, the app will inform you that the criteria for this subtask haven’t been met.
If you can’t find the answer you need in our documentation, raise a support request.