List historic task instances

GET {{baseUrl}}/historic-task-instances?taskId=ut enim labore&processInstanceId=ut enim labore&processInstanceIdWithChildren=ut enim labore&processDefinitionKey=ut enim labore&processDefinitionKeyLike=ut enim labore&processDefinitionId=ut enim labore&processDefinitionName=ut enim labore&processDefinitionNameLike=ut enim labore&processBusinessKey=ut enim labore&processBusinessKeyLike=ut enim labore&executionId=ut enim labore&taskDefinitionKey=ut enim labore&taskDefinitionKeys=ut enim labore&taskName=ut enim labore&taskNameLike=ut enim labore&taskDescription=ut enim labore&taskDescriptionLike=ut enim labore&taskCategory=ut enim labore&taskDeleteReason=ut enim labore&taskDeleteReasonLike=ut enim labore&taskAssignee=ut enim labore&taskAssigneeLike=ut enim labore&taskOwner=ut enim labore&taskOwnerLike=ut enim labore&taskInvolvedUser=ut enim labore&taskPriority=ut enim labore&finished=true&processFinished=true&parentTaskId=ut enim labore&dueDate=1977-02-15T16:48:37.101Z&dueDateAfter=1977-02-15T16:48:37.101Z&dueDateBefore=1977-02-15T16:48:37.101Z&withoutDueDate=true&taskCompletedOn=1977-02-15T16:48:37.101Z&taskCompletedAfter=1977-02-15T16:48:37.101Z&taskCompletedBefore=1977-02-15T16:48:37.101Z&taskCreatedOn=1977-02-15T16:48:37.101Z&taskCreatedBefore=1977-02-15T16:48:37.101Z&taskCreatedAfter=1977-02-15T16:48:37.101Z&includeTaskLocalVariables=true&includeProcessVariables=true&includeTaskAssignments=true&includeTaskComments=true&scopeDefinitionId=ut enim labore&scopeId=ut enim labore&scopeType=ut enim labore&filterByCurrentSubscription=true&excludeSubTasks=true&sortEmptyValuesOnTop=true&includeUserIds=false&includeGroupIds=false

List historic task instances.

Request Params

KeyDatatypeRequiredDescription
taskIdstringAn id of the historic task instance.
processInstanceIdstringThe process instance id of the historic task instance.
processInstanceIdWithChildrenstringSelects the historic task instances for the process instance and its children.
processDefinitionKeystringThe process definition key of the historic task instance.
processDefinitionKeyLikestringThe process definition key of the historic task instance, which matches the given value.
processDefinitionIdstringThe process definition id of the historic task instance.
processDefinitionNamestringThe process definition name of the historic task instance.
processDefinitionNameLikestringThe process definition name of the historic task instance, which matches the given value.
processBusinessKeystringThe process instance business key of the historic task instance.
processBusinessKeyLikestringThe process instance business key of the historic task instance that matches the given value.
executionIdstringThe execution id of the historic task instance.
taskDefinitionKeystringThe task definition key for tasks part of a process
taskDefinitionKeysstringThe task definition key for tasks part of a process
taskNamestringThe task name of the historic task instance.
taskNameLikestringThe task name with like operator for the historic task instance.
taskDescriptionstringThe task description of the historic task instance.
taskDescriptionLikestringThe task description with like operator for the historic task instance.
taskCategorystringSelect tasks with the given category. Note that this is the task category, not the category of the process definition (namespace within the BPMN Xml).
taskDeleteReasonstringThe task delete reason of the historic task instance.
taskDeleteReasonLikestringThe task delete reason with like operator for the historic task instance.
taskAssigneestringThe assignee of the historic task instance.
taskAssigneeLikestringThe assignee with like operator for the historic task instance. This parameter works only with user emails.
taskOwnerstringThe owner of the historic task instance.
taskOwnerLikestringThe owner with like operator for the historic task instance. This parameter works only with user emails.
taskInvolvedUserstringAn involved user of the historic task instance
taskPrioritystringThe priority of the historic task instance.
finishedbooleanIndication if the historic task instance is finished.
processFinishedbooleanIndication if the process instance of the historic task instance is finished.
parentTaskIdstringAn optional parent task id of the historic task instance.
dueDatestringReturn only historic task instances that have a due date equal this date.
dueDateAfterstringReturn only historic task instances that have a due date after this date.
dueDateBeforestringReturn only historic task instances that have a due date before this date.
withoutDueDatebooleanReturn only historic task instances that have no due-date. When false is provided as value, this parameter is ignored.
taskCompletedOnstringReturn only historic task instances that have been completed on this date.
taskCompletedAfterstringReturn only historic task instances that have been completed after this date.
taskCompletedBeforestringReturn only historic task instances that have been completed before this date.
taskCreatedOnstringReturn only historic task instances that were created on this date.
taskCreatedBeforestringReturn only historic task instances that were created before this date.
taskCreatedAfterstringReturn only historic task instances that were created after this date.
includeTaskLocalVariablesbooleanAn indication if the historic task instance local variables should be returned as well.
includeProcessVariablesbooleanAn indication if the historic task instance global variables should be returned as well.
includeTaskAssignmentsbooleanAn indication if the historic task instance assigments should be returned as well.
includeTaskCommentsbooleanAn indication if the historic task instance comments should be returned as well.
scopeDefinitionIdstringOnly return historic task instances with the given scopeDefinitionId.
scopeIdstringOnly return historic task instances with the given scopeId.
scopeTypestringOnly return historic task instances with the given scopeType.
filterByCurrentSubscriptionbooleanOnly return the historic process tasks in the current subscription
excludeSubTasksbooleanOnly return historic process tasks that are not a subtask of another task.
sortEmptyValuesOnTopbooleanIf true, empty values are ordered at top of list. If false, empty values are ordered at bottom of list
includeUserIdsbooleanIndication to include OTDS Id instead of email for users in the response.
includeGroupIdsbooleanIndication to include id instead of name for groups and roles in response.

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{"links":{"empty":true},"content":[[{"category":"SampleCategory","subscriptionId":"c33fd1c5-65ce-11eb-8176-04ed339d7291","tenantId":"56adec43-d43a-4112-9f49-cd7c64d1d75b","executionId":"68cb0e35-74d7-11ea-a29e-50e08558ee22","endTime":"2020-04-02T17:20:18.722+05:30","variables":[{"name":"SampleVariable","type":"string","value":{},"encryption":false,"scope":"local"},{"name":"SampleVariable","type":"string","value":{},"encryption":false,"scope":"local"}],"deleteReason":"Sample Delete Reason","dueDate":"2020-04-13T17:15:11.315+05:30","assignee":"SampleAssignee","formKey":"SampleFormKey","parentTaskId":"692870987-74d7-11ea-a29e-50e08558ee22","claimTime":"2013-06-15T21:11:03.401Z","scopeType":"SampleScopeType","scopeId":"SampleScopeId","assignments":[{"user":"testCandidate@test.com","type":"assignee","group":"testgroup"},{"user":"testCandidate@test.com","type":"assignee","group":"testgroup"}],"name":"Sample Task","priority":5,"id":"69287079-74d7-11ea-a29e-50e08558ee22","owner":"SampleOwner","description":"Sample Task Description","startTime":"2020-04-02T17:15:11.315+05:30","comments":[{"taskId":"f89f1185-3391-11ea-b509-eeee0affefe7","author":"user@opentext.com","message":"SampleMessage","id":"e710b009-3397-11ea-b509-eeee0affefe7","time":"1972-05-22T21:15:38.013Z","processInstanceId":"f8985abd-3391-11ea-b509-eeee0affefe7"},{"taskId":"f89f1185-3391-11ea-b509-eeee0affefe7","author":"user@opentext.com","message":"SampleMessage","id":"e710b009-3397-11ea-b509-eeee0affefe7","time":"1994-03-03T13:10:04.974Z","processInstanceId":"f8985abd-3391-11ea-b509-eeee0affefe7"}],"taskDefinitionKey":"SampleTaskDefinitionKey","durationInMillis":307407,"workTimeInMillis":509346,"scopeDefinitionId":"SampleScopeDefinitionId","processInstanceId":"68cb0e33-74d7-11ea-a29e-50e08558ee22","processDefinitionId":"SampleDeployment:3:668738b2-74d7-11ea-a29e-50e08558ee22","links":{"empty":false}},{"category":"SampleCategory","subscriptionId":"c33fd1c5-65ce-11eb-8176-04ed339d7291","tenantId":"56adec43-d43a-4112-9f49-cd7c64d1d75b","executionId":"68cb0e35-74d7-11ea-a29e-50e08558ee22","endTime":"2020-04-02T17:20:18.722+05:30","variables":[{"name":"SampleVariable","type":"string","value":{},"encryption":false,"scope":"local"},{"name":"SampleVariable","type":"string","value":{},"encryption":false,"scope":"local"}],"deleteReason":"Sample Delete Reason","dueDate":"2020-04-13T17:15:11.315+05:30","assignee":"SampleAssignee","formKey":"SampleFormKey","parentTaskId":"692870987-74d7-11ea-a29e-50e08558ee22","claimTime":"1985-05-26T09:41:57.910Z","scopeType":"SampleScopeType","scopeId":"SampleScopeId","assignments":[{"user":"testCandidate@test.com","type":"assignee","group":"testgroup"},{"user":"testCandidate@test.com","type":"assignee","group":"testgroup"}],"name":"Sample Task","priority":5,"id":"69287079-74d7-11ea-a29e-50e08558ee22","owner":"SampleOwner","description":"Sample Task Description","startTime":"2020-04-02T17:15:11.315+05:30","comments":[{"taskId":"f89f1185-3391-11ea-b509-eeee0affefe7","author":"user@opentext.com","message":"SampleMessage","id":"e710b009-3397-11ea-b509-eeee0affefe7","time":"1988-05-09T11:04:29.555Z","processInstanceId":"f8985abd-3391-11ea-b509-eeee0affefe7"},{"taskId":"f89f1185-3391-11ea-b509-eeee0affefe7","author":"user@opentext.com","message":"SampleMessage","id":"e710b009-3397-11ea-b509-eeee0affefe7","time":"2019-07-19T03:30:20.464Z","processInstanceId":"f8985abd-3391-11ea-b509-eeee0affefe7"}],"taskDefinitionKey":"SampleTaskDefinitionKey","durationInMillis":307407,"workTimeInMillis":509346,"scopeDefinitionId":"SampleScopeDefinitionId","processInstanceId":"68cb0e33-74d7-11ea-a29e-50e08558ee22","processDefinitionId":"SampleDeployment:3:668738b2-74d7-11ea-a29e-50e08558ee22","links":{"empty":true}}],[{"category":"SampleCategory","subscriptionId":"c33fd1c5-65ce-11eb-8176-04ed339d7291","tenantId":"56adec43-d43a-4112-9f49-cd7c64d1d75b","executionId":"68cb0e35-74d7-11ea-a29e-50e08558ee22","endTime":"2020-04-02T17:20:18.722+05:30","variables":[{"name":"SampleVariable","type":"string","value":{},"encryption":false,"scope":"local"},{"name":"SampleVariable","type":"string","value":{},"encryption":false,"scope":"local"}],"deleteReason":"Sample Delete Reason","dueDate":"2020-04-13T17:15:11.315+05:30","assignee":"SampleAssignee","formKey":"SampleFormKey","parentTaskId":"692870987-74d7-11ea-a29e-50e08558ee22","claimTime":"2021-04-19T22:08:47.311Z","scopeType":"SampleScopeType","scopeId":"SampleScopeId","assignments":[{"user":"testCandidate@test.com","type":"assignee","group":"testgroup"},{"user":"testCandidate@test.com","type":"assignee","group":"testgroup"}],"name":"Sample Task","priority":5,"id":"69287079-74d7-11ea-a29e-50e08558ee22","owner":"SampleOwner","description":"Sample Task Description","startTime":"2020-04-02T17:15:11.315+05:30","comments":[{"taskId":"f89f1185-3391-11ea-b509-eeee0affefe7","author":"user@opentext.com","message":"SampleMessage","id":"e710b009-3397-11ea-b509-eeee0affefe7","time":"1962-12-07T07:28:38.578Z","processInstanceId":"f8985abd-3391-11ea-b509-eeee0affefe7"},{"taskId":"f89f1185-3391-11ea-b509-eeee0affefe7","author":"user@opentext.com","message":"SampleMessage","id":"e710b009-3397-11ea-b509-eeee0affefe7","time":"1989-06-12T02:57:22.514Z","processInstanceId":"f8985abd-3391-11ea-b509-eeee0affefe7"}],"taskDefinitionKey":"SampleTaskDefinitionKey","durationInMillis":307407,"workTimeInMillis":509346,"scopeDefinitionId":"SampleScopeDefinitionId","processInstanceId":"68cb0e33-74d7-11ea-a29e-50e08558ee22","processDefinitionId":"SampleDeployment:3:668738b2-74d7-11ea-a29e-50e08558ee22","links":{"empty":false}},{"category":"SampleCategory","subscriptionId":"c33fd1c5-65ce-11eb-8176-04ed339d7291","tenantId":"56adec43-d43a-4112-9f49-cd7c64d1d75b","executionId":"68cb0e35-74d7-11ea-a29e-50e08558ee22","endTime":"2020-04-02T17:20:18.722+05:30","variables":[{"name":"SampleVariable","type":"string","value":{},"encryption":false,"scope":"local"},{"name":"SampleVariable","type":"string","value":{},"encryption":false,"scope":"local"}],"deleteReason":"Sample Delete Reason","dueDate":"2020-04-13T17:15:11.315+05:30","assignee":"SampleAssignee","formKey":"SampleFormKey","parentTaskId":"692870987-74d7-11ea-a29e-50e08558ee22","claimTime":"2007-01-14T18:27:58.953Z","scopeType":"SampleScopeType","scopeId":"SampleScopeId","assignments":[{"user":"testCandidate@test.com","type":"assignee","group":"testgroup"},{"user":"testCandidate@test.com","type":"assignee","group":"testgroup"}],"name":"Sample Task","priority":5,"id":"69287079-74d7-11ea-a29e-50e08558ee22","owner":"SampleOwner","description":"Sample Task Description","startTime":"2020-04-02T17:15:11.315+05:30","comments":[{"taskId":"f89f1185-3391-11ea-b509-eeee0affefe7","author":"user@opentext.com","message":"SampleMessage","id":"e710b009-3397-11ea-b509-eeee0affefe7","time":"1953-10-31T01:42:19.812Z","processInstanceId":"f8985abd-3391-11ea-b509-eeee0affefe7"},{"taskId":"f89f1185-3391-11ea-b509-eeee0affefe7","author":"user@opentext.com","message":"SampleMessage","id":"e710b009-3397-11ea-b509-eeee0affefe7","time":"1981-12-10T07:17:09.238Z","processInstanceId":"f8985abd-3391-11ea-b509-eeee0affefe7"}],"taskDefinitionKey":"SampleTaskDefinitionKey","durationInMillis":307407,"workTimeInMillis":509346,"scopeDefinitionId":"SampleScopeDefinitionId","processInstanceId":"68cb0e33-74d7-11ea-a29e-50e08558ee22","processDefinitionId":"SampleDeployment:3:668738b2-74d7-11ea-a29e-50e08558ee22","links":{"empty":true}}]]}