Product SiteDocumentation Site

7.2.7. Dynamic values for Enumeration Custom Fields

As discussed earlier, one of the possible types of a custom field is "enumeration". This type of custom field allows the user to select one value from a provided list of possible values. The standard way of defining such custom fields is to provide a '|' separated list of possible values. However, this approach has two limitations: the list is static, and the maximum length of the list must be no longer than 255 characters. Hence, the need for the ability to construct the list of possible values dynamically.

7.2.7.1. Dynamic possible values included by default

MantisBT ships with some dynamic possible values, these include the following:
  • =categories - a list of categories defined in the current project (or the project to which the issue belongs).
  • =versions - a list of all versions defined in the current project (or the project to which the issue belongs).
  • =future_versions - a list of all versions that belong to the current project with released flag set to false.
  • =released_versions - a list of all versions that belong to the current project with released flag set to true.

Note

The '=' before the name of the dynamic list of options is used to tell MantisBT that this is a dynamic list, rather than a static list with just one option.