Difference between revisions of "CreateTask"

From Catglobe Wiki
Jump to: navigation, search
(jrfconvert import)
(jrfconvert import)
Line 4: Line 4:
 
=====createTask=====
 
=====createTask=====
  
Creates a new task using specified task resource template and assign Manager role to the responsible resource, returns the new task's UniqueId.
+
Creates a new task using default task resource template and assign Manager role to the responsible resource, returns the new task's UniqueId.
  
 
'''Syntax'''
 
'''Syntax'''
  
createTask(''taskName, parentUniqueId, responsibleUniqueid, description, taskResourceTemplateId'')
+
createTask(''taskName, parentUniqueId, responsibleUniqueid, description'')
  
 
'''Arguments'''
 
'''Arguments'''
Line 14: Line 14:
 
* ''taskName'': Is a string expression. It is the name of the new task.
 
* ''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.
 
* ''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.
+
* ''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.
 
* ''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'''
 
'''Return type'''
Line 26: Line 25:
 
''//create a new task''
 
''//create a new task''
  
''createTask("TaskCreateTest", 104371, 25455, "Testing task create method", 57);''
+
''createTask("TaskCreateTest", 104371, 25455, "Testing task create method");''
  
''or createTask("TaskCreateTest", 104371, empty, "Testing task create method", 57);''
+
''or createTask("TaskCreateTest", 104371, empty, "Testing task create method");''
  
 
''//return: 2188468''
 
''//return: 2188468''
Line 35: Line 34:
  
 
Version 5.4
 
Version 5.4
 +
 +
====
 
__NOTOC__
 
__NOTOC__
<!-- imported from file: 3739.htm-->
+
<!-- imported from file: 694.htm-->

Revision as of 09:57, 7 March 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

==