Templates
Templates
Section titled “Templates”Save issue configurations as templates for quick reuse.
Prerequisites
Section titled “Prerequisites”- Authenticated profile (
atlcli auth login) - Jira permission: Browse Projects (to save from existing issues)
List Templates
Section titled “List Templates”atlcli jira template listSave Template
Section titled “Save Template”Save an existing issue as a template:
atlcli jira template save bug-report --issue PROJ-123Options:
| Flag | Description |
|---|---|
--issue |
Source issue key |
--description |
Template description |
--force |
Overwrite existing template |
View Template
Section titled “View Template”atlcli jira template get bug-reportApply Template
Section titled “Apply Template”Create an issue from a template:
atlcli jira template apply bug-report --project PROJ --summary "Login fails on mobile"Options:
| Flag | Description |
|---|---|
--project |
Target project (required) |
--summary |
Issue summary (required) |
--assignee |
Override assignee |
Delete Template
Section titled “Delete Template”atlcli jira template delete bug-report --confirmExport Template
Section titled “Export Template”Export to a JSON file:
atlcli jira template export bug-report -o ./templates/bug-report.jsonImport Template
Section titled “Import Template”Import from a JSON file:
atlcli jira template import --file ./templates/bug-report.jsonTemplate Storage
Section titled “Template Storage”Templates support hierarchical storage at three levels:
| Level | Location | Scope |
|---|---|---|
global |
~/.atlcli/templates/jira/global/ |
Available everywhere |
profile |
~/.atlcli/templates/jira/profiles/<name>/ |
Available when using that profile |
project |
~/.atlcli/templates/jira/projects/<key>/ |
Available for that project |
The base directory can be relocated with the ATLCLI_TEMPLATES_DIR environment
variable.
Choosing a Level
Section titled “Choosing a Level”save, import, delete and list all pick a storage level with the same rule:
- an explicit
--level <global|profile|project>always wins; - otherwise
--project <key>selects project storage; - otherwise
--profile <name>selects profile storage; - otherwise global.
--profile is primarily the auth-profile flag, so it is the weakest storage
signal — passing it does not divert a template away from the level you asked for.
An unrecognised --level value is rejected rather than silently falling back to
another level.
Save to Specific Level
Section titled “Save to Specific Level”# Save globally (default)atlcli jira template save my-template --issue PROJ-123
# Save to profileatlcli jira template save my-template --issue PROJ-123 --level profile
# Save to projectatlcli jira template save my-template --issue PROJ-123 --level project --project PROJ
# --project on its own implies project levelatlcli jira template save my-template --issue PROJ-123 --project PROJList Shows All Levels
Section titled “List Shows All Levels”atlcli jira template listOutput:
NAME TYPE FIELDS LEVEL DESCRIPTIONbug-report Bug 5 [global] Standard bug reportfeature-request Story 4 [profile:work] Team feature templatesprint-task Task 3 [project:PROJ] Project-specific taskResolution Order
Section titled “Resolution Order”When applying a template, atlcli searches in order:
- Project level (
~/.atlcli/templates/jira/projects/<key>/) - Profile level (
~/.atlcli/templates/jira/profiles/<name>/) - Global level (
~/.atlcli/templates/jira/global/)
The first match wins, allowing project-specific overrides of global templates.
Captured Fields
Section titled “Captured Fields”Templates capture:
- Issue type
- Summary (as pattern)
- Description
- Priority (by ID)
- Labels
- Components
- Fix versions
- Custom fields
Templates never capture project, assignee, status, or system fields.