Available for: Content Management Server
Task: Creates a list of the IDs of all tasks in which the specified parameters have the specified values.
Syntax:
task where {parameter value}
Function parameters:
-
parameterThe name of the parameter whose value is specified invalueand which is being searched for. If several parameters are entered, they will be combined with and. The parameters can be:-
maxResultsspecifies thatvalueis a number that limits the number of hits. If number is less than or equal to zero, the number of hits is unlimited. -
userLogin: only the tasks which are assigned to the user specified invaluewill be returned. -
groupNames: only the tasks which are assigned to the groups specified in thevaluestring list will be returned. -
taskText: the text given asvalueneeds to be contained in the comment or title of a task. -
objId: only tasks which refer to the file with the ID given asvaluewill be listed. -
taskType: only tasks of the type given asvaluewill be listed. The type can be one of the following values:-
edit: only tasks in an editing workflow are taken into account. -
sign: only tasks in a signature workflow are taken into account.
-
-
-
valueis the value of the respective parameter.
Return value if successful: list of task file IDs (stringlist)
Necessary permissions: no restrictions
Example:
CM>task where taskType edit 2014.5 2035.4 2042.21 2049.16 2056.231 2063.19 2070.34 2084.6