| | 6 | |
|---|
| | 7 | Each policy has a condition, which controls when the policy is |
|---|
| | 8 | applied, and actions that are applied when the condition is met. |
|---|
| | 9 | |
|---|
| | 10 | The condition is in the form of "field" "comparitor" "field value". |
|---|
| | 11 | The field is a field of the ticket (e.g. 'type'), |
|---|
| | 12 | the field value is its value (e.g. 'defect'), |
|---|
| | 13 | the comparitor is some |
|---|
| | 14 | rule that is applied to the field and its value (e.g. 'is not'). |
|---|
| | 15 | |
|---|
| | 16 | The following comparitors have been implemented: |
|---|
| | 17 | |
|---|
| | 18 | * is |
|---|
| | 19 | * is not |
|---|
| | 20 | * is in : the field is one of a list |
|---|
| | 21 | * is not in |
|---|
| | 22 | |
|---|
| | 23 | This should probably become an extension point so that these are |
|---|
| | 24 | easily pluggable. |
|---|
| | 25 | |
|---|
| | 26 | ''"is in" and 'is not in' have NOT been tested are PROBABLY CONTAIN |
|---|
| | 27 | BUGS! only use these if you want to test them or can contribute |
|---|
| | 28 | debugging data regarding them'' |
|---|
| | 29 | |
|---|
| | 30 | Policy actions are an ExtensionPoint of components fulfilling the |
|---|
| | 31 | ITicketSubmitPolicy interface. Bundled with the |
|---|
| | 32 | TicketSubmitPolicyPlugin are two such actions: |
|---|
| | 33 | |
|---|
| | 34 | * requires : require fields before allowing form submission |
|---|
| | 35 | |
|---|
| | 36 | * excludes : exclude fields from form display and submission |
|---|
| | 37 | |
|---|
| | 38 | Each of these, and currently actions in general, take multiple |
|---|
| | 39 | arguments in the form of ticket fields. |
|---|