5 * Copyright 2005, GForge, LLC
7 * This file is part of FusionForge. FusionForge is free software;
8 * you can redistribute it and/or modify it under the terms of the
9 * GNU General Public License as published by the Free Software
10 * Foundation; either version 2 of the Licence, or (at your option)
13 * FusionForge is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License along
19 * with FusionForge; if not, write to the Free Software Foundation, Inc.,
20 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24 // Here is where you define different sets of default elements
27 $machines=array('All','DEC','HP','Macintosh','PC','SGI','Sun','Other');
29 $products=array('Software A');
39 'Windows Server 2003',
65 $components=array('Cog A','Cog B');
67 $versions=array('v1.0','v1.1');
69 $severities=array('blocker',
77 $patch_ress=array('Accepted','Rejected','Out of Date','Awaiting Response');
78 $bug_ress=array('Accepted As Bug','Fixed','Won\'t Fix','Invalid','Awaiting Response','Works For Me');
81 // Here is where you combine the arrays of elements into
82 // field definitions, including titles, types, and attributes
85 //NAME, TYPE, ATTR1, ATTR2, REQUIRED, SOURCE_ARRAY
87 $hardware=array('Hardware',ARTIFACT_EXTRAFIELDTYPE_SELECT,0,0,0, $machines);
88 $product=array('Product',ARTIFACT_EXTRAFIELDTYPE_SELECT,0,0,0,$products);
89 $os=array('Operating System',ARTIFACT_EXTRAFIELDTYPE_SELECT,0,0,0,$oss);
90 $component=array('Component',ARTIFACT_EXTRAFIELDTYPE_SELECT,0,0,0,$components);
91 $version=array('Version',ARTIFACT_EXTRAFIELDTYPE_SELECT,0,0,0,$versions);
92 $severity=array('Severity',ARTIFACT_EXTRAFIELDTYPE_SELECT,0,0,0,$severities);
93 $url=array('URL',ARTIFACT_EXTRAFIELDTYPE_TEXT,40,100,0,array());
95 $patchres=array('Resolution',ARTIFACT_EXTRAFIELDTYPE_SELECT,0,0,0,$patch_ress);
96 $bugres=array('Resolution',ARTIFACT_EXTRAFIELDTYPE_SELECT,0,0,0,$bug_ress);
98 $severity=array('Severity',ARTIFACT_EXTRAFIELDTYPE_SELECT,0,0,0,$severities);
101 // Here is where you define which trackers to create
102 // Note that you can define as many as you want
106 NAME, DESCRIPTION, $email_all,$email_address,
107 $due_period,$use_resolution,$submit_instructions,$browse_instructions,
111 $trackers[]=array('Bugs','Bug Tracking System','','',30,0,'','',1, array($hardware, $product, $os, $component, $version, $severity, $bugres, $url));
113 $trackers[]=array('Support','Tech Support Tracking System','','',30,0,'','',2, array($hardware, $product, $os, $component, $version, $severity, $url));
115 $trackers[]=array('Patches','Patch Tracking System','','',30,0,'','',3, array($component, $version, $patchres));
117 $trackers[]=array('Feature Requests','Feature Request Tracking System','','',30,0,'','',4, array($product, $os, $component));
119 //This allows you to specify a custom status with given status_id.
120 //e.g. The following allows for open and closed custom states to be defined for new trackers.
122 /*$custom_statuses=array(
123 array('Duplicate',2),
124 array('Unreproducable',1),
126 array('Needs Test',1),
127 array('Needs Fix',1));
129 $custom_status=array('Status',ARTIFACT_EXTRAFIELDTYPE_STATUS,0,0,1,$custom_statuses);*/
133 // c-file-style: "bsd"