Skip to main content

Task

A task is a physical task assigned to a user from either a user or the system

Construction

You create a task using the Task() constructor, e.g.

mytask = Task()

Properties

A task has the following properties:

NameDescriptionType
categoryThe category for this taskString
descriptionA description of this taskString
userThe user assigned to this taskString
createdThe creation timestamp (READ ONLY)Date
assignedByThe user or system that assigned this task to the userString
completeThe completion state of this taskBoolean
completedThe timestamp the task was completedDate
notifyA flag to indicate that the user should be notified by email - defaults to trueBoolean

Methods

A task has the following methods:

NameDescriptionReturn Type
finish()Marks the task as complete and saves it to the databaseVoid