TaskTemplates
Last updated
Last updated
TaskTemplates
are the component where all information about what the task is and how it should be reported is stored.
Usually it will have related FormFields which describe how TaskProgressFields should be filled by the executing user. TaskTemplates
can have other TaskTemplates
as children.
TaskAssignments will utilize the TaskTemplate
information to create Tasks assigned to users or user groups.
Alias
taskTemplate
Relations
Relation | Key | Type | Relation Field(s) |
---|---|---|---|
Traits
Sortable
Layoutable
To get a list of task template, create a GET request to:
/api/administration/tasks-2/templates/
.
Example Request
Example Response
To show a task template, create a GET request to:
/api/administration/tasks-2/templates/{id}
.
Example Request
Example Response
To create a new task template, create a POST request to:
/api/administration/tasks-2/templates/
.
Request Keys
Keys with *
are required.
sort_number
- The input will be set to the maximum number, if left empty.
sort_number
- If you pass a number in between existing sorted entries, other entries will be automatically updated.
parent_id
- Has to be an existing task template id.
To delete a Post, create a DELETE request to:
/api/administration/tasks-2/templates/{id}
.
To update a task template, create a PUT request to:
/api/administration/tasks-2/templates/{id}
.
Request Keys
Keys with *
are required.
sort_number
- The input will be set to the maximum number, if left empty.
sort_number
- If you pass a number in between existing sorted entries, other entries will be automatically updated.
parent_id
- Has to be an existing task template id.
Key | Type | Default | Description |
---|---|---|---|
Key | Type | Default | Description |
---|---|---|---|
parent
Belongs to
parent_id
children
Has many
parent_id
taskAssignments
Has many
parent_id
tasks
Has many through
tasks.task_assignment_id
formFields
Has many
form_fields.form_id form_fields.type
user
Belongs to
user_id
layouts
Has many
layouts.layoutable_type
, layouts.layoutable_id
title
*
string
-
The title of the template
description
string
-
The description of the template
parent_id
integer
-
The parent_id
sort_number
integer
-
The sort number of this template.
grade_scale
integer
-
The grade scale of this template
tour_enabled
boolean
-
Enables a user tour for tasks of this template
title
string
-
The title of the template
description
string
-
The description of the template
parent_id
integer
-
The parent_id
sort_number
integer
-
The sort number of this template.
grade_scale
integer
-
The grade scale of this template
tour_enabled
boolean
-
Enables a user tour for tasks of this template