Versions Compared

Key

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

1.Creating global variables

You can use variables when creating a template. In this section, using a specific example, we will figure out how to do this.

The Variables page displays system and global variables. In our example, no one has yet created global variables, so only system variables are displayed on the page.

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 value of this variable.

...

The Variables page now looks like this:

...

2. Adding variables to the template

Let's create a new template “Congratulations upong hiring”. Add congratulations in the description and use two variables:

  • system variable - today

  • global variables - directorsName and companyName

...

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

Save the new template using the “Save” 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.

...

Those template fields that have been filled in will be automatically copied to the corresponding issue fields. Values will be substituted for variable names:

  • for the system variable today - the current date will be substituted

  • for global variables directorsName and companyName - their default values

...