CreateTaskspecified task resource template

From Catglobe Wiki
Jump to: navigation, search

createTask

Creates a new task using specified task resource template and assign Manager role to the responsible resource, returns the new task's UniqueId.

Syntax

createTask(taskName, parentUniqueId, responsibleUniqueid, description, taskResourceTemplateId)

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.
  • description: Is a string expression. It is the description of the new task.
  • taskResourceTemplateId: is a numeric (non-decimal) expression. It is the id of the task resource template.


Return type

number

Examples

//create a new task

createTask("TaskCreateTest", 104371, 25455, "Testing task create method", 57);

or createTask("TaskCreateTest", 104371, empty, "Testing task create method", 57);

//return: 2188468

Availability

Version 5.4