This chapter provides information about dynamic variables.
Dynamic variables are placeholders which you can define in your primary template in text fields (for example summary, description). Before an issue is created from a template, dynamic variables are collected from the primary template and an additional form is displayed. It’s the place where you provide values.
While placeholders are collected only in the primary template, they are replaced with provided values both in primary and secondary templates.
For example, you can configure a template like this:
Dynamic variables used above:
Employee name: [Employee name]*
Starts on: [Start date:date]*
Position: [Position | Developer | Writer | UX | Tester | Product owner]*
Manager: [Manager:user]
Equipment required: [Equipment* | laptop | monitor | monitor x2 | headset ]
Prepare:
[Prepare:paragraph]
If you define dynamic variables in an epic and use the same variable in a story/subtask, all placeholders are replaced with the provided value. However, variables that were defined only in stories or subtasks aren’t taken into account.
It’s sufficient to define a variable only once in any field. It can then be referenced only by a name. The order doesn’t matter.
Description:
Equipment for a new employee [equipment*| laptop| monitor| headset]*
Summary:
An order of equipment for a new employee: [equipment]
To configure the format of your dynamic placeholders:
Dynamic variables are supported while creating issues via issue.templates.automation property.