Enumerating Custom Fields with version specific to a project
Posted: 21 Jun 2011, 22:59
So right now, Mantis supports enumerating custom fields with dynamic values defined in the current project (or the project to which the issue belongs)
http://docs.mantisbt.org/master/en/admi ... DS.DYNAMIC
However, I would like to always enumerate my custom field with version values for a specific project. For example, enumerate the custom field "Firmware version" with a list of versions defined for a project named "Firmware" in the MantisBT.
Based on the example code (replaced "categories" with "versions") given in the above link:
the "helper_get_current_project" function gets the name of the project, is there a similar function to which we can pass the name of the specific project from which we would like to pull the version values?
http://docs.mantisbt.org/master/en/admi ... DS.DYNAMIC
However, I would like to always enumerate my custom field with version values for a specific project. For example, enumerate the custom field "Firmware version" with a list of versions defined for a project named "Firmware" in the MantisBT.
Based on the example code (replaced "categories" with "versions") given in the above link:
Code: Select all
$t_versions = versions_get_all_rows( helper_get_current_project() );