Help

Project variables

Introduction

Project variables allow you to specify in one place a value which can then be referenced in many places within your Mingle project. Using a project variable instead of hard-coding a specific value means that value can be changed in one place and immediately the new value will be reflected throughout the project.

Any time you find yourself entering a constant into a MQL query, it's worth considering if it might be better to use a project variable instead. This is especially likely if you find yourself using the same constant in several places.

How and where to use project variables

There are multiple areas where you can use a project variable as a value of a property:

    Card transitions

    MQL statements

    Filter conditions

    Card defaults

    Card views

    Bulk editor on card list views

You can create the following types of project variable
  • Text - any text value of up to 255 characters in length.
  • Numeric - any numeric value.
  • Selected from team list - any project team member.
  • Date - any date.
  • Card - a reference to a card.

Beginning with Mingle 2.3, project variables are available as values for most existing parameters for all macro charts. Any project variable data types which match the types of any chart parameters can be used to generate charts. For example, you can use the date project variable called (Release Start Date) in 'x-labels-start' in data series chart.

If you created a new project based on a template, the project may include some project variables by default. You can update or remove any extra project variables as required.

If templates that contain project variables are imported without cards, then any project variable references a specific card, then it will be changed to be (not set).