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/ | Available everywhere |
profile | ~/.atlcli/profiles/<name>/templates/jira/ | Available when using profile |
project | .atlcli/templates/jira/ | Available in project directory |
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 projectList 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/) - Profile level (
~/.atlcli/profiles/<name>/templates/jira/) - Global level (
~/.atlcli/templates/jira/)
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.
Related Topics
Section titled “Related Topics”
Jira and Confluence are trademarks of Atlassian Corporation Plc.
atlcli is not affiliated with, endorsed by, or sponsored by Atlassian.