IsImmutableTaskField reports whether the supplied field name is immutable after task creation.
(field string)
| 78 | |
| 79 | // IsImmutableTaskField reports whether the supplied field name is immutable after task creation. |
| 80 | func IsImmutableTaskField(field string) bool { |
| 81 | switch field { |
| 82 | case TaskFieldCreatedBy, TaskFieldOrigin, TaskFieldScope, TaskFieldWorkspaceID, TaskFieldParentTaskID: |
| 83 | return true |
| 84 | default: |
| 85 | return false |
| 86 | } |
| 87 | } |
| 88 | |
| 89 | // IsMutableTaskField reports whether the supplied field name is directly mutable on a task. |
| 90 | func IsMutableTaskField(field string) bool { |
no outgoing calls