TaskList
Use this resource to get a list of open tasks assigned to the current user and a list of the user's completed tasks.
Method summary
HTTP Method | Path | Description |
---|---|---|
GET | /scr/api/TaskList | Gets a list of open tasks assigned to the current user and a list of the user's completed tasks. |
GET /scr/api/TaskList
- Description
- Use this method to get a list of open tasks assigned to the current user and a list of the user's completed tasks.
- Resource information
-
Requirements Description Response format JSON Requires authentication Yes Supports OAuth 2 client credentials Yes using a User Service ID containing Work Management Category Rate limited Not yet
- Parameters
-
Name Location Description Required Type X-On-Behalf-Of Header The user context. The value must be a username in the account. The user must have permission to perform the action in the account and in the specified parent space, if any. Required if Service ID OAuth credentials are used. Not required when using User Service ID OAuth credential. String type Query The type of list to return. The following values are supported: assigned
orcompleted
. If the value is not supported, the400
response code is returned.Yes String version Query The version of the requested API. The only allowed value is 20110917
.Yes String limit Query The maximum number of tasks to return. If this parameter is not provided, the default value of 100
is used.No Integer startFrom Query If this parameter is provided, then the returned list starts with the task at this index in the list (zero based). Use this parameter if the number of available tasks is higher than the number of the returned tasks in an earlier call limit. No Integer
- Response
-
- Example input
-
- Using User Service ID OAuth 2 client
credentials:
curl -i -H "Authorization: Bearer access_token" "https://your_server_url/scr/api/TaskList?type=completed&version=20110917"
- Using Service ID OAuth 2 client credentials with user
context:
curl -i -H "Authorization: Bearer access_token" -H "X-On-Behalf-Of:user_name@domain.com" "https://your_server_url/scr/api/TaskList?type=completed&version=20110917"
- Using User Service ID OAuth 2 client
credentials:
- Example output
-
{ "work":[ { "name":"ProcessApp 1 - Multiple process apps.", "id":"5f501e1345eda" }, { "name":"ProcessApp 2 - Multiple process apps.", "id":"5f500e134a57f" }, ] }
- Response properties
-
- version
- The version of the API that was used to create a response.
- more
- Contains one of the following possible values:
true
if there are more tasks on the serverfalse
if the task entry includes all of the tasks available
- type
- The type of tasks in the list. The possible values are
assigned
orcompleted
. These values match the one that can be passed for the type parameter. - tasks
- The array of tasks. The tasks are listed in reverse chronological order of
dueDate
. Items with the samedueDate
are sorted by instance ID and task ID. - task.name
- The name of the task.
- task.id
- The ID of the task.
- task.workId
- The ID of the associated work. This property matches the ID property of one of the entries in the work array. More than one task can reference the same work entry.
- task.dueDate
- Optional parameter. The due date for the task. If the task has no due date, this field is not present. The due date is listed in milliseconds since epoch, that is 1 January 1970 at midnight Coordinated Universal Time (UTC).
- work
- The array of work items. The work items are in no particular order. There
is an entry in the array for every unique value of
workId
in the tasks array. - work.name
- The name that was given to the work instance when it was started.
- work.id
- The ID of the work instance.
- Response messages
-
HTTP code Reason 200 The request was completed successfully.
400 There was an error processing the request. Required parameters were missing or contained invalid values.
401 The user isn't authorized to make the request.