Database
id | int | ID of this object. Primary key |
todoid | int | Reference to the task that this restriction is for |
minimum_distance | int | Number of days expected between each planning. |
user_change | string | Policy for user change. no = no user change allowed. team = user change allowed within team. all = user change allowed across all users. |
date_change | string | Policy for date change. no = no date change allowed. week = date can change within same week. month = date can change within same month. always = date can always be changed. |
allowed_days | collection | Which days are allowed to be selected. 1 = monday, 2 = tuesday etc. If this is empty it should be interpreted as "all days are allowed". |
GetTaskPlanRestrictionsByLastChange
Get all TaskPlanRestrictions changed after a certain date.
changedate | date | Date |
changetime | time | Time |
Output
taskplanrestrictions | collection[TaskPlanRestriction] | All restrictions changed after the given date/time. |
GetTaskPlanRestrictionByTodoID
Get a TaskPlanRestriction for a specific todo/task.
todoid | int | ID of a todo object |
Output
taskplanrestriction | TaskPlanRestriction | The restriction for this task, if one exists. |