User Tools

  • Logged in as: anonymous (anonymous)
  • Log Out

Site Tools


mantisbt:alternative_custom_field_display_requirements

This is an old revision of the document!


Custom Rules Requirements (Alternative to Custom Field Display Requirements)

  • Author: Daryn Warriner (daryn)
  • Status: Work in progress, Draft
  • Associated Issue: #5650, #4736, #5744

Introduction

Mantis allows for creation of custom field definitions for bugs. Currently, Mantis allows users to configure when each custom field is displayed and when it is required. The current implementation allows the user to specify the display/require option on 4 conditions; report, update, resolved, closed. The report, resolved, and closed conditions each map to one Status. The update conditions maps to all other statuses.

This feature will allow advanced configuration of custom fields by providing the ability to define complex custom rules using not only any status but also any standard field in scope, any custom field, or any configuration option. In addition, users will be able to apply these custom rules to standard fields as well as custom fields.

Implementation Notes

  • Some notes

Database Changes

  • Required database changes to mantis_XXX_table
  • Create Table mantis_config_actions_table
    • id int(11) primary key, with auto_increment flag
    • action varchar(32) NOT NULL unique key
    • description varchar(256)
  • Create Table mantis_config_pages_table
    • id int(11) primary key, with auto_increment flag
    • name varchar(30) NOT NULL
    • page_type enum('BUG','BUGNOTE','USER','PROJECT') NOT NULL default 'BUG'
    • access_type enum('view','add','edit') NOT NULL default 'view'
    • UNIQUE KEY `name` (`name`,`page_type`)
  • Create Table mantis_field_rule_config_table
    • id int(11) primary key, with auto_increment flag
    • config_type enum('custom_field','config','mantis_object') NOT NULL,
    • config_object_type enum('bug','bugnote','user','project') default NULL
    • field_name varchar(75) NOT NULL,
    • field_type enum('string','int','time')
  • Create Table mantis_field_rule_definition_table
  • Create Table mantis_field_rule_definition_table
  • Create Table mantis_field_rule_link_table
  • Create Table mantis_field_ruleset_action_table
  • Create Table mantis_field_ruleset_operators_table
  • Create Table mantis_field_ruleset_table

Configuration

  • $g_var indicates something

Implementation Log

Other Changes

Feedback

  • Please provide feedback
mantisbt/alternative_custom_field_display_requirements.1202163998.txt.gz · Last modified: 2008/10/29 04:31 (external edit)

Driven by DokuWiki