Skip to content

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

FlagTypeRequiredDescription
--assignstringNoassignee: display name, email, 'me', 'none', or 'unassign'
--projectstringYesproject key (e.g. PROJ)
--varstringArrayNovariable 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}

FlagTypeRequiredDescription
--fromstringNoexisting issue key to create template from (e.g. PROJ-123)
--overwriteboolNooverwrite existing template with the same name

Example:

bash
jr template create

list

List all available templates (builtin + user-defined)

Example:

bash
jr template list

show

Show a template's full definition including variables and fields

Example:

bash
jr template show