Difference between revisions of "Task new"
Cg huyphong (talk | contribs) |
|||
Line 29: | Line 29: | ||
| style="border: 1px solid #010101" width="356" bgcolor="#C0C0C0" | | | style="border: 1px solid #010101" width="356" bgcolor="#C0C0C0" | | ||
'''Initial Value''' | '''Initial Value''' | ||
− | |- align="left" valign="top" | + | |- align="left" valign="top" style="border: 1px solid #010101" |
| width="356" | | | width="356" | | ||
TASK_RESOURCE_ID | TASK_RESOURCE_ID | ||
− | | width="356" | | + | | width="356" style="border: 1px solid #010101" | |
number | number | ||
− | | width="356" | | + | | width="356" style="border: 1px solid #010101" | |
0 | 0 | ||
|- align="left" valign="top" | |- align="left" valign="top" | ||
Line 171: | Line 171: | ||
| style="border: 1px solid #010101" width="324" | | | style="border: 1px solid #010101" width="324" | | ||
TASK_STATUS_AWAITINGAPPROVAL | TASK_STATUS_AWAITINGAPPROVAL | ||
+ | |} | ||
+ | |} | ||
'''Example''' | '''Example''' | ||
Line 187: | Line 189: | ||
Version 5.8 | Version 5.8 | ||
+ | |||
__NOTOC__ | __NOTOC__ | ||
<!-- imported from file: 7607.htm--> | <!-- imported from file: 7607.htm--> |
Revision as of 05:49, 23 December 2011
Task_new
Create new task object
Syntax
Task_new(taskname, parentResourceId[, taskTemplateResourceId][, taskDescription])
Arguments
- taskname: is string. It is the name of new task
- parentResourceId: is number. It is parent resource id of the new task
- taskTemplateResourceId: is number. It is the template resource Id
- taskDescription: is string. It is journal's description of task
Return value
Array which is Task object:
Index |
Data type |
Initial Value | ||||||||||
TASK_RESOURCE_ID |
number |
0 | ||||||||||
TASK_CASE_NUMBER |
number |
0 | ||||||||||
TASK_NAME |
string |
Entered value | ||||||||||
TASK_PARENT_RESOURCE_ID |
number |
Entered value | ||||||||||
TASK_TEMPLATE_RESOURCE_ID |
number |
Entered value (default if it is not specified) | ||||||||||
TASK_TIME_REGISTRATION |
bool |
TRUE | ||||||||||
TASK_COMPLETED |
bool (read only) |
FALSE | ||||||||||
TASK_TESTCASE_RESOURCE_ID |
number |
0 (Always = 0 if test case is not required) | ||||||||||
TASK_RESPONSIBLE_RESOURCE_ID |
number |
0 | ||||||||||
TASK_SUPERVISOR_RESOURCE_ID |
number |
0 | ||||||||||
TASK_OBSERVER |
array |
(Explanation *) | ||||||||||
TASK_OBSERVER_INHERIT_ACCESS |
bool |
FALSE | ||||||||||
TASK_STATUS |
number (read only) |
(Explanation **) Explanation * TASK_OBSERVER: {{current user's resource id, "FullControl"}} List of user or group which is observer of this task { {observer's resource id, control access},...} Ex: {{1,"RESOURCE_ACCESS_OBSERVER"},{2,"RESOURCE_ACCESS_MANAGER"}} In which, control access constants are:
Explanation ** TASK_STATUS: Default value is 0 Constants:
|
Example
string bulkMailName = "TestBulkMail";
number parentResourceId = 34778803;
number mailTemplateResourceId = 501537;
array newBM = BulkMail_new(bulkMailName, parentResourceId, mailTemplateResourceId);
print(newBM);
Availability
Version 5.8