Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Let's add two new global variables: companyName and directorsName.

...

To do this, click on the "Create variable" button.

In the window that appears, you must specify the name of the new variable and the default value of this variable.

...

The Variables page now looks like this:

...

2. Adding variables to the template

Let's create a new issue that we can use as a base for our template “Congratulations upon hiring”. Add congratulations in the description and use two variables:

  • system variable - today tomorrow

  • global variables - directorsName and companyName

...

Note

Note that you must enter the dollar sign($) before the variable name.

...

Save the new template using the “SaveCreate template” button.

3. Applying a template with variables

A template with variables is applied in the same way as a template without variables. Create a new issue using the "Create" button

...

The issue creation window will open. Use the “Select Template” button to select the “Congratulations upon hiring” template.

...

Go to the Apps → Apply Template

...

Click “Next”

Those template fields that have been filled in will be automatically copied to the corresponding issue fields. Variable names will be replaced with values:

  • for the system variable today tomorrow- the current date of the next day will be substituted

  • for global variables directorsName and companyName - their default values

...

4. System variables in the template

Image RemovedImage Added

Templates cannot use all system variables. Some of the system variables are needed only for hierarchies. The following system variables can be used in templates: time, today, dateTime, tomorrow, nextWeek, username, userEmail, projectKey, projectName, projectLeadName.

...