task macro
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.
Tasks can be added for each workflow state using the Edit states panel in workflow builder
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. Filter by labelThere are no items with the selected labels at this time. | 3.0+ | ||
| Due date for task completion:
If specified, the task, if not completed, will eventually expire and trigger a taskexpired event. | |||
| Note to associate with the task:
Filter by labelThere are no items with the selected labels at this time. | 3.2.7+ | ||
DeprecatedThe following parameters are no longer supported. | ||||
| Obsolete Task types are no longer supported – use {approval} macros instead, with customised button labels. | 3.0 |
You can add one or more workflow tasks to each state using the workflow builder:
Added tasks are listed in the state panel for the workflow state.
Tasks completed transition
A state can be configured to automatically transition once all tasks are completed using its completed
parameter.
You can add this transition using the workflow builder:
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
-
Expiry Dates — States, tasks, and messages can be set to expire on a certain date or after a certain amount of time
-
Make tasks disable a review — Two ways to use tasks to disable a review. The first way uses a precursor task state where the tasks can be set and completed. The second example uses a Value Reference as a condition to check that all tasks are complete. For the value reference method, you will need the Reporting for Confluence app in addition to Comala Document Management.
See also
Need support? Create a request with our support team.