| 1 | Action Modification (dates have precision='second') Task (dates have precision='$day') |
|---|
| 2 | ------------------------------------------------------------------------------------------------------ |
|---|
| 3 | |
|---|
| 4 | Create -> recordModification("Created") <- is the date created. |
|---|
| 5 | |
|---|
| 6 | Schedule -> recordModification("SetTargetStartDate") -> set: Task.targetStartDate |
|---|
| 7 | |
|---|
| 8 | recordModification("SetTargetCompletionDate") -> set: Task.targetCompletionDate |
|---|
| 9 | |
|---|
| 10 | Start -> recordModification("ActualStartDate") <- is the date started |
|---|
| 11 | |
|---|
| 12 | Complete -> recordModification("ActualCompletionDate") <- is the date completed |
|---|
| 13 | |
|---|
| 14 | Reopen -> recordModification("ActualCompletionDate") <- is the date completed |
|---|
| 15 | |
|---|
| 16 | Delete -> recordModification("Deleted") -> Task.isActive = false |
|---|
| 17 | Trash -> recordModification("Trashed") -> Task.isActive = false |
|---|
| 18 | |
|---|
| 19 | Restore -> recordModification("Restore") -> Task.isActive = true |
|---|
| 20 | |
|---|
| 21 | Approve -> recordModification("Approve") -> Task.isApproved = true |
|---|
| 22 | |
|---|
| 23 | Renege -> recordModification("Renege") -> Task.isApproved = false |
|---|
| 24 | |
|---|
| 25 | AddAssignedPerson-> recordModification("AddAssignedPerson", $assignedPerson) |
|---|
| 26 | |
|---|
| 27 | RmAssignedPerson -> recordModification("RmAssignedPerson", $assignedPerson) |
|---|
| 28 | |
|---|
| 29 | recordModification(String type) { |
|---|
| 30 | Modification.modificationType = ModificationType.findByName(type) |
|---|
| 31 | Modification.date = now |
|---|
| 32 | Modification.person = userName |
|---|
| 33 | Modification.comment = "" |
|---|
| 34 | } |
|---|
| 35 | recordModification(String type, String comment) { |
|---|
| 36 | Modification.modificationType = ModificationType.findByName(type) |
|---|
| 37 | Modification.date = now |
|---|
| 38 | Modification.person = userName |
|---|
| 39 | Modification.comment = comment |
|---|
| 40 | } |
|---|
| 41 | |
|---|
| 42 | |
|---|
| 43 | Required Services: |
|---|
| 44 | TaskCopy |
|---|
| 45 | TaskGenerateSubTask |
|---|