View Last Work Manager Task Commitment
get
/primeapi/restapi/workManagerTaskCommitment/lastCommitment/task/{id}
This endpoint returns work manager task commitments that meet the following requirements:
- The object is associated with a task with an ID value that matches the value of the {taskId} path parameter.
Request
Path Parameters
-
id: integer(int64)
The system-generated identifier of a task.
Response
Supported Media Types
- application/json
200 Response
successful operation
Root Schema : ApiEntityWorkManagerTaskCommitment
Type:
Show Source
object
-
addByUserId:
integer(int64)
Read Only:
true
The username of the user who added the item. -
applicationUserId:
integer(int64)
Read Only:
true
The system-generated identifier of a user. -
commitmentId(optional):
integer(int64)
Read Only:
true
The unique identifier of a commitment. -
dueDate:
string(date-time)
The date by which the task is expected to be completed.
-
link(optional):
string(url)
Read Only:
true
-
projectCompanyId:
integer(int64)
The system-generated identifier of a project.
-
projectId:
integer(int64)
The system-generated identifier of a project.
-
reasons(optional):
array reasons
Read Only:
true
Unique Items Required:true
-
status(optional):
string
Read Only:
true
Allowed Values:[ "COMMITTED", "RECOMMITTED" ]
The status of the commitment. Valid values are Committed and Recommitted. -
timezoneDateAdded(optional):
object TimezoneSensitiveDateTime
-
updateDate(optional):
string(date-time)
Read Only:
true
Date when the record was last updated. Used for viewing and filtering records, obtained ONLY from GET calls, modified on and after a particular date. Not a part of POST response. -
workManagerTaskId:
integer(int64)
Read Only:
true
The unique identifier of a task.
Nested Schema : ApiEntityReason
Type:
Show Source
object
-
abbreviation:
string
The abbreviation of the reason for recommitting to a task.
-
appliesTo(optional):
array appliesTo
The type of the reason.
-
link(optional):
string(url)
Read Only:
true
-
pushDownType(optional):
string
Allowed Values:
[ "MANUAL", "AUTOMATIC" ]
How data is shared between parent and child workspaces.
Manual: Data can be pulled down by child workspaces. This is the default option.
Automatic: Data is automatically shared with all child workspaces. -
reasonId(optional):
integer(int64)
The unique identifier of a reason.
-
reasonName:
string
The name of the reason for recommitting to a task.
-
updateDate(optional):
string(date-time)
Read Only:
true
Date when the record was last updated. Used for viewing and filtering records, obtained ONLY from GET calls, modified on and after a particular date. Not a part of POST response. -
workspaceId:
integer(int64)
The unique identifier of a workspace.
Nested Schema : appliesTo
Type:
array
The type of the reason.
Show Source
-
[0]:
string
Allowed Values:
[ "TASKS", "CHANGE_EVENT" ]
404 Response
The requested work manager task commitment does not exist, or you do not have access to it.