Get details for a completed user task

get/workflows/{workflowId}/completedTasks/{taskId}

Returns full details for a completed user task.

Request Samples

Response Samples

1{
2 "value": {
3 "version": 1,
4 "id": "WF81f9b511-1e5f-4c0e-b123-64085bb34705",
5 "workflowId": "032e99e6-45ce-4b08-b4e6-a7f655dc153a",
6 "workflowName": "testCompleteLoop3dccbb59-f7a4-4f70-8b85-537a1707bc64",
7 "elementId": "WFF3C85865-9E12-4228-84F9-F5CDCC67235E",
8 "elementName": "First User Task",
9 "elementType": "USER_TASK",
10 "type": "USERTASK",
11 "completedBy": "sastest1",
12 "completedByDisplayName": "SAS Test User 1 (sastest1)",
13 "creationTimeStamp": "2025-12-03T19:12:34.271Z",
14 "completedTimeStamp": "2025-12-03T19:13:07.919Z",
15 "completionState": "COMPLETED_SUCCESSFUL",
16 "name": "First User Task - run 2",
17 "dueDate": "2025-12-03T21:12:33.870Z",
18 "priority": "LOW",
19 "assigneeId": "sastest1",
20 "assigneeDisplayName": "SAS Test User 1 (sastest1)",
21 "completionComment": "Comment for loop 2",
22 "assignedTimeStamp": "2025-12-03T19:12:59.798Z",
23 "startedTimeStamp": "2025-12-03T19:13:04.329Z",
24 "totalHoursWorked": 8,
25 "completionData": [
26 {
27 "name": "Continue",
28 "type": "boolean",
29 "value": "true"
30 },
31 {
32 "name": "State",
33 "type": "string",
34 "value": "Ready for verification"
35 }
36 ],
37 "history": [
38 {
39 "version": 1,
40 "id": "3c4e2f4f-dea2-4f5f-a4e8-7534f800bdb7",
41 "taskId": "WF819edffe-a135-42ec-9c75-915eecbffa8e",
42 "elementId": "WFF3C85865-9E12-4228-84F9-F5CDCC67235E",
43 "workflowId": "032e99e6-45ce-4b08-b4e6-a7f655dc153a",
44 "assigneeId": "sastest1",
45 "assigneeDisplayName": "SAS Test User 1 (sastest1)",
46 "assignedTimeStamp": "2025-12-03T19:13:57.971Z",
47 "startedTimeStamp": "2025-12-03T19:14:02.382Z",
48 "hoursWorked": 3.5
49 },
50 {
51 "version": 1,
52 "id": "1c52a8e2-0f8f-449c-85b9-a2159451733f",
53 "taskId": "WF819edffe-a135-42ec-9c75-915eecbffa8e",
54 "elementId": "WFF3C85865-9E12-4228-84F9-F5CDCC67235E",
55 "workflowId": "032e99e6-45ce-4b08-b4e6-a7f655dc153a",
56 "assigneeId": "sastest2",
57 "assigneeDisplayName": "SAS Test User 2 (sastest2)",
58 "assignedTimeStamp": "2025-12-03T19:13:50.885Z",
59 "startedTimeStamp": "2025-12-03T19:13:55.997Z",
60 "hoursWorked": 2.5
61 }
62 ]
63 }
64}

Path Parameters

NameTypeRequiredDescription
taskId
string
true

The unique identifier for the clinical workflow task.

workflowId
string
true

The unique identifier for the clinical workflow.

Responses

StatusMeaningDescription
200OK

OK

Schema
404Not Found

The clinical task could not be found.