Difference between revisions of "Task new"

From Catglobe Wiki
Jump to: navigation, search
(Tag: visualeditor)
Line 193: Line 193:
  
 
| style="border: 1px solid #010101" width="356" |  
 
| style="border: 1px solid #010101" width="356" |  
array DateTime
+
array DateTime (read only)
  
 
| style="border: 1px solid #010101" width="356" |  
 
| style="border: 1px solid #010101" width="356" |  
Line 202: Line 202:
  
 
| style="border: 1px solid #010101" width="356" |  
 
| style="border: 1px solid #010101" width="356" |  
array DateTime
+
array DateTime (read only)
  
 
| style="border: 1px solid #010101" width="356" |  
 
| style="border: 1px solid #010101" width="356" |  
Line 211: Line 211:
  
 
| style="border: 1px solid #010101" width="356" |  
 
| style="border: 1px solid #010101" width="356" |  
array DateTime
+
array DateTime (read only)
  
 
| style="border: 1px solid #010101" width="356" |
 
| style="border: 1px solid #010101" width="356" |
Line 219: Line 219:
 
TASK_MAN_HOURS
 
TASK_MAN_HOURS
  
| style="border: 1px solid #010101" width="356" |  
+
| style="border: 1px solid #010101" width="356" | number
 
 
  
 
| style="border: 1px solid #010101" width="356" |
 
| style="border: 1px solid #010101" width="356" |
Line 228: Line 227:
 
TASK_DESCRIPTION
 
TASK_DESCRIPTION
  
| style="border: 1px solid #010101" width="356" |  
+
| style="border: 1px solid #010101" width="356" | string
 
 
  
 
| style="border: 1px solid #010101" width="356" |
 
| style="border: 1px solid #010101" width="356" |
  
 
|- valign="top" align="left"
 
|- valign="top" align="left"
| style="border: 1px solid #010101" width="356" |  
+
| style="border: 1px solid #010101" width="356" | TASK_VERSION
 
 
 
 
| style="border: 1px solid #010101" width="356" |
 
  
 +
| style="border: 1px solid #010101" width="356" | number (read only)
  
 
| style="border: 1px solid #010101" width="356" |
 
| style="border: 1px solid #010101" width="356" |
Line 246: Line 242:
 
TASK_CREATED_DATE
 
TASK_CREATED_DATE
  
| style="border: 1px solid #010101" width="356" |  
+
| style="border: 1px solid #010101" width="356" | array DateTime (read only)
 
 
  
 
| style="border: 1px solid #010101" width="356" |
 
| style="border: 1px solid #010101" width="356" |
Line 255: Line 250:
 
TASK_MODIFIED_DATE
 
TASK_MODIFIED_DATE
  
| style="border: 1px solid #010101" width="356" |  
+
| style="border: 1px solid #010101" width="356" | array DateTime (read only)
 
 
  
 
| style="border: 1px solid #010101" width="356" |
 
| style="border: 1px solid #010101" width="356" |
Line 264: Line 258:
 
TASK_RESPONSIBLE_NAME
 
TASK_RESPONSIBLE_NAME
  
| style="border: 1px solid #010101" width="356" |  
+
| style="border: 1px solid #010101" width="356" | string  (read only)
 
 
  
 
| style="border: 1px solid #010101" width="356" |
 
| style="border: 1px solid #010101" width="356" |
Line 273: Line 266:
 
TASK_SUPERVISOR_NAME
 
TASK_SUPERVISOR_NAME
  
| style="border: 1px solid #010101" width="356" |  
+
| style="border: 1px solid #010101" width="356" | string  (read only)
 
 
  
 
| style="border: 1px solid #010101" width="356" |
 
| style="border: 1px solid #010101" width="356" |
Line 282: Line 274:
 
TASK_CURRENT_USER_IS_RESPONSIBLE
 
TASK_CURRENT_USER_IS_RESPONSIBLE
  
| style="border: 1px solid #010101" width="356" |  
+
| style="border: 1px solid #010101" width="356" | bool  (read only)
 
 
  
 
| style="border: 1px solid #010101" width="356" |
 
| style="border: 1px solid #010101" width="356" |
Line 291: Line 282:
 
TASK_CURRENT_USER_IS_SUPERVISOR
 
TASK_CURRENT_USER_IS_SUPERVISOR
  
| style="border: 1px solid #010101" width="356" |  
+
| style="border: 1px solid #010101" width="356" | bool  (read only)
 
 
  
 
| style="border: 1px solid #010101" width="356" |
 
| style="border: 1px solid #010101" width="356" |
Line 358: Line 348:
  
 
|}
 
|}
 
 
  
 
'''Availability'''  
 
'''Availability'''  

Revision as of 03:50, 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

TASK_COMPLETION_DEADLINE

array DateTime

TASK_APPROVAL_DEADLINE

array DateTime

TASK_ACTUAL_START_DATE

array DateTime (read only)

TASK_ACTUAL_END_DATE

array DateTime (read only)

TASK_APPROVED_DATE

array DateTime (read only)

TASK_MAN_HOURS

number

TASK_DESCRIPTION

string
TASK_VERSION number (read only)

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:

Template: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:

  • RESOURCE_ACCESS_OBSERVER
  • RESOURCE_ACCESS_MANAGER
  • 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