4 // Here is where you define different sets of default elements
7 $machines=array('All','DEC','HP','Macintosh','PC','SGI','Sun','Other');
9 $products=array('Software A');
19 'Windows Server 2003',
45 $components=array('Cog A','Cog B');
47 $versions=array('v1.0','v1.1');
49 $severities=array('blocker',
57 $patch_ress=array('Accepted','Rejected','Out of Date','Awaiting Response');
58 $bug_ress=array('Accepted As Bug','Fixed','Won\'t Fix','Invalid','Awaiting Response','Works For Me');
61 // Here is where you combine the arrays of elements into
62 // field definitions, including titles, types, and attributes
65 //NAME, TYPE, ATTR1, ATTR2, REQUIRED, SOURCE_ARRAY
67 $hardware=array('Hardware',ARTIFACT_EXTRAFIELDTYPE_SELECT,0,0,0, $machines);
68 $product=array('Product',ARTIFACT_EXTRAFIELDTYPE_SELECT,0,0,0,$products);
69 $os=array('Operating System',ARTIFACT_EXTRAFIELDTYPE_SELECT,0,0,0,$oss);
70 $component=array('Component',ARTIFACT_EXTRAFIELDTYPE_SELECT,0,0,0,$components);
71 $version=array('Version',ARTIFACT_EXTRAFIELDTYPE_SELECT,0,0,0,$versions);
72 $severity=array('Severity',ARTIFACT_EXTRAFIELDTYPE_SELECT,0,0,0,$severities);
73 $url=array('URL',ARTIFACT_EXTRAFIELDTYPE_TEXT,40,100,0,array());
75 $patchres=array('Resolution',ARTIFACT_EXTRAFIELDTYPE_SELECT,0,0,0,$patch_ress);
76 $bugres=array('Resolution',ARTIFACT_EXTRAFIELDTYPE_SELECT,0,0,0,$bug_ress);
78 $severity=array('Severity',ARTIFACT_EXTRAFIELDTYPE_SELECT,0,0,0,$severities);
81 // Here is where you define which trackers to create
82 // Note that you can define as many as you want
86 NAME DESCRIPTION, $is_public,$allow_anon,$email_all,$email_address,
87 $due_period,$use_resolution,$submit_instructions,$browse_instructions,
91 $trackers[]=array('Bugs','Bug Tracking System',1,0,'','',30,0,'','',1, array($hardware, $product, $os, $component, $version, $severity, $bugres, $url));
93 $trackers[]=array('Support','Tech Support Tracking System',1,0,'','',30,0,'','',2, array($hardware, $product, $os, $component, $version, $severity, $url));
95 $trackers[]=array('Patches','Patch Tracking System',1,0,'','',30,0,'','',3, array($component, $version, $patchres));
97 $trackers[]=array('Feature Requests','Feature Request Tracking System',1,0,'','',30,0,'','',4, array($product, $os, $component));
99 //This allows you to specify a custom status with given status_id.
100 //e.g. The following allows for open and closed custom states to be defined for new trackers.
102 /*$custom_statuses=array(
103 array('Duplicate',2),
104 array('Unreproducable',1),
106 array('Needs Test',1),
107 array('Needs Fix',1));
109 $custom_status=array('Status',ARTIFACT_EXTRAFIELDTYPE_STATUS,0,0,1,$custom_statuses);*/