For the complete documentation index, see llms.txt. This page is also available as Markdown.

TaskAssignments

Introduction

TaskAssignments define when and for whom tasks should be executed.

Assignment data and related TaskTemplates are used to create TaskExecutions for users and departments.

The description field uses the shared Rich Text HTML format.

Model Definition

Alias

taskAssignment

Relations

Key
Relation
Type
Relation Field(s)

taskTemplate

Belongs to

task_template_id

taskTemplateComposition

Belongs to

task_template_composition_id

children

Has many

parent_id

departments

Belongs to many

Intermediate table

users

Belongs to many

Intermediate table

creator

Belongs to

creator_user_id

taskExecutions

Has many

task_executions.task_assignment_id

Capabilities

  • Targetables - assign_mode, user_ids, and department_ids determine who receives executions; child assignments can inherit their parent's targets.

  • Entity Permissions - Direct grants participate in administration access together with ownership and module permissions.

  • Translations - The title and description fields are translatable.

Admin: List

List all TaskAssignments in administration scope.

Definition

GET /api/administration/tasks-2/assignments

Example Request

Example Response

List

List assignments relevant to the authenticated user.

Definition

GET /api/tasks-2/assignments

Example Request

Example Response

List Always-Executable Assignments

List assignments the authenticated user may execute without a time window.

Definition

GET /api/tasks-2/assignments/always-executable

Behavior

  • The result is restricted to assignments relevant for the authenticated user and allowed by the always-executable assignment permission strategy.

Example Request

Example Response

Admin: Show

Show one TaskAssignment in administration scope.

Definition

GET /api/administration/tasks-2/assignments/{taskAssignment}

Route Parameters

Parameter
Type
Description

taskAssignment

integer

TaskAssignment ID

Example Request

Example Response

Admin: Create

Create a new TaskAssignment.

Definition

POST /api/administration/tasks-2/assignments

Request Keys

Key
Type
Default
Description

title*

string

-

Assignment title.

description

string

null

Assignment description (HTML).

lang_id

string

system language

Language key.

folder_id

integer | null

null

Related Folder ID.

parent_id

integer | null

null

Parent composition assignment ID.

inherit_parent_values

boolean

false

Inherit timing and targeting from the parent assignment.

task_template_id

integer | null

null

Related TaskTemplate ID.

task_template_composition_id

integer | null

null

Related TaskTemplateComposition ID; required without task_template_id.

assign_mode

string | null

all

Selects one of the shared Assignment Modes.

start_date

date

null

Start date (YYYY-MM-DD).

start_time

time

null

Start time (H:i:s).

show_before_interval

interval

null

Visibility lead interval (ISO 8601 duration).

executable_before_interval

interval

null

Executable-before interval (ISO 8601 duration).

executable_after_interval

interval

null

Executable-after interval (ISO 8601 duration).

interval

string

null

iCal RRULE.

interval_end

date

null

End date for recurrence.

active

boolean

true

Active state.

always_executable

boolean

false

Allows execution without time restrictions.

user_confirmation_required

boolean

true

Requires real-user confirmation.

delayed_reason_required

boolean

true

Requires delayed reason for delayed finish.

deny_reason_required

boolean

true

Requires deny reason on deny action.

reset_allowed

boolean

true

Allows reset action for related executions.

sort_number

integer

auto

Sort number.

department_ids

array

[]

Target departments.

user_ids

array

[]

Target users.

entity_permissions

object[]

[]

Keys with * are required. A root assignment must provide either task_template_id or task_template_composition_id.

Behavior

  • creator_user_id, revision_id, dispatched_by_system, and the root assignment's quick_assignment value are controlled by the backend.

  • User targets take precedence over department targets during creation when both arrays are non-empty.

  • Timing and recurrence values are cleared when start_date is absent or always_executable is true.

Example Request

Example Response

Create Quick Assignment

Create a quick TaskAssignment for the current authenticated user.

Definition

POST /api/tasks-2/assignments/quick-assignment

Request Keys

Key
Type
Default
Description

title*

string

-

Assignment title.

task_template_id*

integer

-

Related quick-assignable TaskTemplate.

lang_id

string

system language

Language key.

start_date*

date

-

Start date.

start_time*

time

-

Start time in H:i:s format.

department_ids

array

[]

Target departments.

user_ids

array

[]

Target users.

entity_permissions

object[]

[]

Keys with * are required.

Behavior

  • The endpoint forces quick_assignment and active to true, disables recurrence, and derives assign_mode from the retained user or department targets.

  • Target IDs the authenticated user may not quick-assign are removed before validation.

Example Request

Example Response

Admin: Update

Update an existing TaskAssignment.

Definition

PUT /api/administration/tasks-2/assignments/{taskAssignment}

Route Parameters

Parameter
Type
Description

taskAssignment

integer

TaskAssignment ID.

Request Keys

Key
Type
Description

title

string | null

New assignment title.

description

string | null

New HTML description.

lang_id

string

New language key.

folder_id

integer | null

New related Folder ID.

parent_id

integer | null

New parent composition assignment ID.

inherit_parent_values

boolean

Whether values are inherited from the parent assignment.

task_template_id

integer | null

New TaskTemplate ID.

task_template_composition_id

integer | null

New TaskTemplateComposition ID.

assign_mode

string | null

New assignment mode.

start_date

date | null

New start date.

start_time

time | null

New start time.

show_before_interval

interval | null

New visibility interval.

executable_before_interval

interval | null

New executable-before interval.

executable_after_interval

interval | null

New executable-after interval.

interval

string | null

New RRULE.

interval_end

date | null

New recurrence end date.

active

boolean

New active state.

always_executable

boolean | null

New always-executable state.

user_confirmation_required

boolean | null

New confirmation requirement.

delayed_reason_required

boolean | null

New delayed-reason requirement.

deny_reason_required

boolean | null

New deny-reason requirement.

reset_allowed

boolean | null

New reset-allowed state.

sort_number

integer

New sort number.

department_ids

array

Updated target departments.

user_ids

array

Updated target users.

entity_permissions

object[]

Updated direct Entity Permissions.

Behavior

  • revision_id, creator_user_id, dispatched_by_system, and quick_assignment cannot be set by the client.

  • A changed template, composition, timing, recurrence, active state, assignment mode, inheritance setting, or removed target creates a new assignment revision and soft-deletes the previous record. Adding targets alone does not create a revision.

  • An assignment cannot be activated beneath an inactive parent. Timing and recurrence values are cleared when start_date is cleared or always_executable becomes true.

Example Request

Example Response

Admin: Delete

Delete an existing TaskAssignment.

Definition

DELETE /api/administration/tasks-2/assignments/{taskAssignment}

Route Parameters

Parameter
Type
Description

taskAssignment

integer

TaskAssignment ID

Example Request

Example Response

Last updated