template
apply
Create an issue from a template with variable substitution
Applies a template to create a Jira issue. Use --project to specify the project and --var key=value for variable substitution.
POST /rest/api/3/issue
| Flag | Type | Required | Description |
|---|---|---|---|
--assign | string | No | assignee: display name, email, 'me', 'none', or 'unassign' |
--project | string | Yes | project key (e.g. PROJ) |
--var | stringArray | No | variable value in key=value format (repeatable) |
Example:
bash
jr template apply --project <project>create
Create a user-defined template (optionally from an existing issue)
Creates a new template. Use --from to reverse-engineer a template from an existing issue's fields.
GET /rest/api/3/issue/{issueIdOrKey}
| Flag | Type | Required | Description |
|---|---|---|---|
--from | string | No | existing issue key to create template from (e.g. PROJ-123) |
--overwrite | bool | No | overwrite existing template with the same name |
Example:
bash
jr template createlist
List all available templates (builtin + user-defined)
Example:
bash
jr template listshow
Show a template's full definition including variables and fields
Example:
bash
jr template show