Overview
The {task}
macro is used to automatically create tasks when a workflow {state}
is entered.
Where to use it?
Optional.
One or more {task}
macros can be put in a {state}
macro.
Within a {state}
, each {task}
must be uniquely named.
Parameters
Parameter | Required | Default | Notes | Ver |
---|---|---|---|---|
unnamed first parameter | Name of task:
| 3.0+ | ||
| Task assignee:
If no assignee specified, any user with edit permission on the associated content can assign or complete tasks.
Content by label
There is no content with the specified labels | 3.0+ | ||
duedate | Due date for task completion:
If specified, the task, if not completed, will eventually expire and trigger a
Content by label
There is no content with the specified labels | |||
| Note to associate with the task:
Content by label
There is no content with the specified labels | 3.2.7+ | ||
DeprecatedThe following parameters are no longer supported. | ||||
type | OBSOLETE Task types are no longer supported – use {approval} macros instead, with customised button labels. | 3.0 ↓ 3.2 |
Notes
A {state}
can be configured to automatially transition once all tasks are completed via its completed
parameter.
Events
The following Events relate to tasks:
taskcreated
taskassigned
taskcompleted
taskexpired
Example
{workflow:name=Task example} {state:Tasks|completed=Done} {task:Some task} {state} {state:Done} {state} {workflow}
All examples
There is no content with the specified labels