| 97 | |
| 98 | The most common request is to use a different workflow based on the ticket type. Let's simplify that case slightly for the sake of this example and assume that there are only two ticket types, `defect` and `enhancement`. We'll say that `defect`s require a `qa` step, but `enhancement`s do not. |
| 99 | {{{ |
| 100 | accept = new -> * |
| 101 | accept.name = Accept ticket into workflow |
| 102 | accept.operations = triage |
| 103 | accept.triage_field = type |
| 104 | accept.triage_split = defect->new_defect,enhancement->new_enhancement |
| 105 | |
| 106 | resolve_enh = new_enhancement -> closed |
| 107 | resolve_enh.name = resolve |
| 108 | resolve_enh.operations = set_resolution |
| 109 | |
| 110 | submittotest = new_defect -> qa |
| 111 | submittotest.name = Submit to Test |
| 112 | |
| 113 | resolve_def = qa -> closed |
| 114 | resolve_def.name = resolve |
| 115 | resolve_def.operations = set_resolution |
| 116 | }}} |
| 117 | |