This instruction applies to Jira Cloud (blue star) and Data Center (blue star) version 2.3.0 and later. For old versions instructions, click here.

Variables & Forms is a powerful feature. It may drastically simplify working with the templates and adding necessary information on the go.

Here you can find information about variable usage in your Jira issue templates.

New Feature! šŸš€ Variables just got better!

Whatā€™s changed?

  • Introduced a separate ā€œForm & Variablesā€ page to manage Variables easily

  • Introduced a simple way to insert Variables into the issue field

  • Introduced an ability to sort variables and preview their presence on a Form

Introduction

What is a Variable

A variable is a specific container whose value can be defined during the Jira issue creation from the saved Template.

What is a Form

A "Form" is a structured interface where users can input values for predefined variables during the creation of a Jira issue from a saved template. The form facilitates the process by presenting fields for each variable, guiding the user to enter the necessary information in an organized manner. This ensures that all required data is collected before proceeding with the issue creation.

A form is present on the second step of the issue creation (or applying) from the template process when thereā€™s a variable present.

Available variable types

Variable

Availability

Short text

Long text

Number

(Cloud)

(Data Center)

Date

(Cloud)

(Data Center)

Select dropdown

Multiselect dropdown

User

If you are missing any variable type and need some specific custom variable or Jira field to be filled upon issue creation - let us knowhttps://appliger.atlassian.net/servicedesk/customer/portal/1

Variable properties

You can add a description to every variable. It may serve as additional instruction to the user on filling in a particular variable while Jira issue creation.

It is also possible to define if the variable is optional or required. The required variable field name will be rendered with the red sign ā€œ*ā€ on the Variables form and wonā€™t let the user proceed to the next step until the variable value is filled

image-20240319-122447.png

How to create a Variable

How to preview a variable

To see a form appearance and how variable field will be rendered and shown to the user while a new Jira issue is created from the template:

How to add a variable to the templateā€™s field

To request the variable filling from the user on the form while issue creation, and to put filled values in the created Jira issue, the variable must be added to a templateā€™s (custom) field.

Variables could be added to the text-based fields only, like Summary, Description, and Custom Fields of single-line or multiline text types.

note

You may notice that the Variables icon is the same as the icon for adding the Status element in the issueā€™s Description field. We will fix this confusion soon (blue star)

You may notice that the Variables icon is the same as the icon for adding the Status element in the issueā€™s Description field. We will fix this confusion soon šŸ˜Ž

Alternatively, type a variable label in the format, like <<Employee Name>>, and save changes.

Note, the variable needs to be created via ā€œForm & Variablesā€ page, otherwise youā€™ll get an error that ā€œVariable is not definedā€ while saving changes

Error state.png

In multiline text fields, you can add variables using shortcuts by typing /var..

context menu.png

Click ā€œEnterā€ and choose a variable from the list

How to sort variable

By default, variables will be shown in their creation order on the form.

To reorder variables and arrange them per your needs:

How to remove a variable

To remove variables from the template:

NOTE: Upon deletion, the variable and all its references in the issue fields will also be removed

How to adjust variable

To adjust the variableā€™s properties:

Changing the variableā€™s type is not possible at that moment

How to fill Variable and Create Jira issue

  1. Navigate to Apps ā†’ Templates, or use the left sidebar ā€œTemplatesā€ link, or press ā€œxā€ button on your keyboard

  2. Template selection dialog would appear

    template selection.png

  3. Choose the relevant template, click next, and fill in the variable data

    23 varaibles filled.png
  4. Click ā€œCreateā€

    creation result.png

  5. All variables would be populated with the entered values in parent and child issues (blue star)

    image-20241007-162142.png

FAQ

How do we change old variables notation to the new format? Migration.

No actions are required! (blue star)

Once you update your Easy Templates version to the latest one - your variables will be converted to the new format and accessible via Form & Variables menu item.

When is the introduction of new Variable types planned?

New types will be introduced gradually, but we expect the next one to be released very soon.

Can I use variables within such fields as components, labels, or Teams?

Not yet. Variables can be used with single or multiline text fields as of now. The next field types of support will be rolled out gradually.