Work Item rules

When you modify a work item type, you have the option of applying rules to each of the fields present. Although the name of most rules is enough, it remains mysterious enough for others. Here is a short description of each of the available rules:

  • ALLOWEDVALUES: Specifies a list of possible values for the field.
  • ALLOWEXISTINGVALUE: indicates that the current value is allowed.
  • CANNOTLOSEVALUE: Once the field receives a value, it can no longer be emptied.
  • COPY: copies a value to another field or a system value.
  • DEFAULT: indicates a default value to be placed in the field.
  • EMPTY: the field is emptied and grayed out.
  • FROZEN: makes the field non-modifiable as soon as it is given a non-zero value.
  • MATCH: indicates a format that the value must respect. This rule applies only to string fields. The letters A, N, X are interpreted respectively for alphabetic, numeric and alphanumeric characters. All other characters are treated as simple literals.
  • NOTSAMEAS: indicates that the value must be different from that of another field.
  • PROHIBITEDVALUES: Specifies a list of forbidden values for the field.
  • READONLY: the field is not modifiable and is grayed out.
  • REQUIRED: the field is mandatory.
  • SERVERDEFAULT: fills the field with the value given by the server at the time of the backup. The field appears as read-only.
  • SUGGESTEDVALUES: specifies a list of recommended values but does not prohibit the encoding of other values.
  • VALIDUSER: The value must match a valid user.
  • WHEN: Specifies a list of rules to apply when a field has the specified value
  • WHENNOT: Specifies a list of rules to apply when a field has a different value than the specified value.
  • WHENCHANGED: Specifies a list of rules to apply when a field changes its value.
  • WHENNOTCHANGED: Specifies a list of rules to apply when a field does not change its value.
Advertisements