Skip to content

Commit c2e40f4

Browse files
Copilotvobu
andcommitted
Add date fields to list outputs for process-instances, user-tasks, incidents, and jobs
Co-authored-by: vobu <6573426+vobu@users.noreply.github.com>
1 parent 0bf13a7 commit c2e40f4

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

src/commands/incidents.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ export async function listIncidents(options: {
4141
Type: incident.errorType,
4242
Message: incident.errorMessage?.substring(0, 50) || '',
4343
State: incident.state,
44+
Created: incident.creationTime || '-',
4445
'Process Instance': incident.processInstanceKey,
4546
'Tenant ID': incident.tenantId,
4647
}));

src/commands/jobs.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ export async function listJobs(options: {
4141
Type: job.type,
4242
State: job.state,
4343
Retries: job.retries,
44+
Created: job.creationTime || '-',
4445
'Process Instance': job.processInstanceKey,
4546
'Tenant ID': job.tenantId,
4647
}));

src/commands/process-instances.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ export async function listProcessInstances(options: {
4646
'Process ID': pi.processDefinitionId,
4747
State: pi.state,
4848
Version: pi.processDefinitionVersion || pi.version,
49+
'Start Date': pi.startDate || '-',
4950
'Tenant ID': pi.tenantId,
5051
}));
5152
logger.table(tableData);

src/commands/user-tasks.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ export async function listUserTasks(options: {
4545
Name: task.name || task.elementId,
4646
State: task.state,
4747
Assignee: task.assignee || '(unassigned)',
48+
Created: task.creationDate || '-',
4849
'Process Instance': task.processInstanceKey,
4950
'Tenant ID': task.tenantId,
5051
}));

0 commit comments

Comments
 (0)