Difference between revisions of "Task new"
Nguyenduyan (talk | contribs) (Tag: visualeditor) |
Nguyenduyan (talk | contribs) (Tag: visualeditor) |
||
Line 168: | Line 168: | ||
array DateTime | array DateTime | ||
− | | style="border: 1px solid #010101" width="356" | | + | | style="border: 1px solid #010101" width="356" |{1,1,1,1,0,0,0,1,40} |
|- valign="top" align="left" | |- valign="top" align="left" | ||
Line 177: | Line 177: | ||
array DateTime | array DateTime | ||
− | | style="border: 1px solid #010101" width="356" | | + | | style="border: 1px solid #010101" width="356" | {9999,12,31,23,59,59,999,52,40} |
|- valign="top" align="left" | |- valign="top" align="left" | ||
Line 186: | Line 186: | ||
array DateTime | array DateTime | ||
− | | style="border: 1px solid #010101" width="356" | | + | | style="border: 1px solid #010101" width="356" | {1,1,1,1,0,0,0,1,40} |
|- valign="top" align="left" | |- valign="top" align="left" | ||
Line 195: | Line 195: | ||
array DateTime (read only) | array DateTime (read only) | ||
− | | style="border: 1px solid #010101" width="356" | | + | | style="border: 1px solid #010101" width="356" | {1,1,1,1,0,0,0,1,40} |
|- valign="top" align="left" | |- valign="top" align="left" | ||
Line 204: | Line 204: | ||
array DateTime (read only) | array DateTime (read only) | ||
− | | style="border: 1px solid #010101" width="356" | | + | | style="border: 1px solid #010101" width="356" | {9999,12,31,23,59,59,999,52,40} |
|- valign="top" align="left" | |- valign="top" align="left" | ||
Line 213: | Line 213: | ||
array DateTime (read only) | array DateTime (read only) | ||
− | | style="border: 1px solid #010101" width="356" | | + | | style="border: 1px solid #010101" width="356" |{1,1,1,1,0,0,0,1,40} |
|- valign="top" align="left" | |- valign="top" align="left" | ||
Line 221: | Line 221: | ||
| style="border: 1px solid #010101" width="356" | number | | style="border: 1px solid #010101" width="356" | number | ||
− | | style="border: 1px solid #010101" width="356" | | + | | style="border: 1px solid #010101" width="356" |0 |
|- valign="top" align="left" | |- valign="top" align="left" | ||
Line 229: | Line 229: | ||
| style="border: 1px solid #010101" width="356" | string | | style="border: 1px solid #010101" width="356" | string | ||
− | | style="border: 1px solid #010101" width="356" | | + | | style="border: 1px solid #010101" width="356" |Entered value (Task name is default if not specified) |
|- valign="top" align="left" | |- valign="top" align="left" | ||
Line 236: | Line 236: | ||
| style="border: 1px solid #010101" width="356" | number (read only) | | style="border: 1px solid #010101" width="356" | number (read only) | ||
− | | style="border: 1px solid #010101" width="356" | | + | | style="border: 1px solid #010101" width="356" |0 |
|- valign="top" align="left" | |- valign="top" align="left" |
Revision as of 04:18, 17 October 2017
Contents
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 **) |
TASK_ACCEPTANCE_DEADLINE |
array DateTime |
{1,1,1,1,0,0,0,1,40} |
TASK_COMPLETION_DEADLINE |
array DateTime |
{9999,12,31,23,59,59,999,52,40} |
TASK_APPROVAL_DEADLINE |
array DateTime |
{1,1,1,1,0,0,0,1,40} |
TASK_ACTUAL_START_DATE |
array DateTime (read only) |
{1,1,1,1,0,0,0,1,40} |
TASK_ACTUAL_END_DATE |
array DateTime (read only) |
{9999,12,31,23,59,59,999,52,40} |
TASK_APPROVED_DATE |
array DateTime (read only) |
{1,1,1,1,0,0,0,1,40} |
TASK_MAN_HOURS |
number | 0 |
TASK_DESCRIPTION |
string | Entered value (Task name is default if not specified) |
TASK_VERSION | number (read only) | 0 |
TASK_CREATED_DATE |
array DateTime (read only) | |
TASK_MODIFIED_DATE |
array DateTime (read only) | |
TASK_RESPONSIBLE_NAME |
string (read only) | |
TASK_SUPERVISOR_NAME |
string (read only) | |
TASK_CURRENT_USER_IS_RESPONSIBLE |
bool (read only) | |
TASK_CURRENT_USER_IS_SUPERVISOR |
bool (read only) |
Explanation *
TASK_OBSERVER:
List of user or group which is observer of this task { {observer's resource id, control access, observer's name},...}
Ex: {{123,"RESOURCE_ACCESS_OBSERVER", John Smith (JohnSmith)},{246,"RESOURCE_ACCESS_MANAGER", Alice Sophia Eve (AliceAve)}}
In which, control access constants are:
Index |
Constant name |
0 |
RESOURCE_ACCESS_OBSERVER |
1 |
RESOURCE_ACCESS_MANAGER |
2 |
RESOURCE_ACCESS_ADMINISTRATOR |
Explanation **
TASK_STATUS:
Default value is 0
Constants:
Index |
Constant name |
0 |
TASK_STATUS_NEEDACCEPTANCE |
1 |
TASK_STATUS_INPROGRESS |
2 |
TASK_STATUS_APPROVED |
3 |
TASK_STATUS_AWAITINGAPPROVAL |
Availability
Version 5.8