Skip to main content
Skip table of contents

Hierarchy Variables (Text and User type of variables)

Hierarchies have their variables. Two types of hierarchy variables are available:

  1. Text type hierarchy variable

  2. User type hierarchy variable

System and custom variables can be used in the Hierarchy.

TEXT TYPE

Variables of the TEXT type work the same way as Custom Variables, but only for Hierarchy, which it created in.

The text type of the Hierarchy variables shouldn't have the ‘space’ symbol in the Variable Name

To create a TEXT variable:

  1. Click the Variables button in the Create Hierarchy page.

  2. Select the Variable Name (should not contain spaces and $ symbol)

  3. To choose the Default Value enter the text needed and press ‘Enter’. You can select as many default values as you wish. To remove these, click the cross icon on the ‘Default Value’ label.

    heir-var-1.jpg

    heir-var-2.jpg

How to use Hierarchy Text Variable in the Hierarchy

To use the Hierarchy Text variable enter the ‘$var’' in the field to see the hint with the variables list

var-in-hier.jpg

These Variables can be used only in the single and multiline text fields - Description, Summary, Environment, etc. To use it enter the Variable Name in the text field of the Hierarchy Node with the $ sign before. 

Applying Hierarchy with Text Variables

After clicking the Apply Hierarchy button the set of Variables will be shown on the Confirmation dialog. Click the Variable default value to choose one of the selected values:

 

How to create a new Value for Hierarchy Text Variable?

In order to create a new value for a text variable, you need to enter a new value in the text field ‘Enter value for variable’ and press Enter on the keyboard or press' Use '(new value)' in the drop-down list and then the Hierarchy will be applied with this new value.


USER type

The user type of the Hierarchy variables shouldn't have the ‘space’ symbol in the Variable Name

To create a USER variable:

  1. Click the Add variable button in the Variables section of the Hierarchy.

  2. Сlick the type selector and elect the USER item.

  3. Select the Variable Name (should not contain spaces and $ symbol) and Default Value (may be any user, as it is always possible to change on the Confirmation dialog).

user-var.jpg

How to use Hierarchy User Variable in the Hierarchy

After the USER type of variable is added its name will be added to the user selector fields of the Hierarchy Node.

For now, usage of the USER type of variables does not give any preferences while entered in the text fields - it will return a user id after the Hierarchy is applied.

Variables of the USER type contain the selected User ID so it can be used in the single- and multi-user picker types of fields:

  • Reporter

  • Assignee

  • People

  • Approvers, etc

Applying Hierarchy with Users Variables

After clicking the Apply Hierarchy button the USER type of Variables will be shown on the Confirmation dialog the same way as it is for the TEXT type of Variables, so it is easy to change the Default Value to another user.

After Hierarchy is applied, Variables are set to their Default Values with the Usernames in created Jira issues:

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.