...
Database
Field | Type | Description |
---|
id | int | ID of this object. Primary key | todoid | int |
task_ref | reference (Todo) | Reference to the task that this restriction is for |
other_days | enum | Allow to be moved to other week days |
minimum_distance | intinteger | Number of days expected between each planning. | user_change
metadata | 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. |
allowed_days | collection | Which days are allowed to be selected. 1 = monday, 2 = tuesday etc.array | |
create_date | date+time | Created |
change_date | date+time | Last change |
is_deleted | bool | |
GetTaskPlanRestrictionsByLastChange
Get all TaskPlanRestrictions changed after a certain date.
Input
datedate | 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.
Input
todoid | int | ID of a todo object |
Output
taskplanrestriction | TaskPlanRestriction | The restriction for this task, if one exists. |