Difference between revisions of "CreateTask"
Line 1: | Line 1: | ||
[[Category:Task_Functions]] | [[Category:Task_Functions]] | ||
− | | + | {{HelpFiles}} |
=====createTask===== | =====createTask===== |
Revision as of 10:23, 12 December 2011
createTask
Creates a new task using default task resource template and assign Manager role to the responsible resource, returns the new task's UniqueId.
Syntax
createTask(taskName, parentUniqueId, responsibleUniqueid, description)
Arguments
- taskName: Is a string expression. It is the name of the new task.
- parentUniqueId: Is a numeric (non-decimal) expression. It is the UniqueId of the parent resource.
- responsibleUniqueId: Is a numeric (non-decimal) expression. It is the UniqueId of the responsible resource. It can be empty meaning that no responsible person will be set and task is not yet assigned.
- description: Is a string expression. It is the description of the new task.
Return type
number
Examples
//create a new task
createTask("TaskCreateTest", 104371, 25455, "Testing task create method");
or createTask("TaskCreateTest", 104371, empty, "Testing task create method");
//return: 2188468
Availability
Version 5.4