Versions Compared

Key

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

1. Creating

...

Custom variables

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

The Variables ‘Manage Variables’ page displays system SYSTEM and global CUSTOM variables sections. In our example, no one has yet created global variablescreated a custom variable yet, so only system SYSTEM variables are displayed on the page.

Let's add two new global CUSTOM 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 ‘Manage Variables’ page now looks like this:

...

2. Adding variables to the template

Let's create a new template “Congratulations upon hiringhiring’ template. Add congratulations in the description and use two both variables types:

  • system SYSTEM variable - today

  • global CUSTOM variables - directorsName and companyName

...

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 ‘Create Issue’ dialog will open. Use the Select Templatebutton to select the Congratulations upon hiringtemplate.

...

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 SYSTEM variable today - the current date will be substituted

  • for global the CUSTOM variables directorsName and companyName - their default values

...

4.

...

SYSTEM variables

...

for the template

...

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

...