jira-ai 0.3.13 → 0.3.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -51,6 +51,24 @@ export function formatTaskDetails(task) {
51
51
  // Basic info table
52
52
  const infoTable = createTable(['Property', 'Value'], [15, 65]);
53
53
  infoTable.push(['Status', chalk.green(task.status.name)], ['Assignee', task.assignee?.displayName || chalk.gray('Unassigned')], ['Reporter', task.reporter?.displayName || chalk.gray('N/A')], ['Created', formatTimestamp(task.created)], ['Updated', formatTimestamp(task.updated)]);
54
+ // Add Due Date
55
+ let dueDateValue = chalk.gray('N/A');
56
+ if (task.dueDate) {
57
+ const today = new Date();
58
+ today.setHours(0, 0, 0, 0);
59
+ const dueDate = new Date(task.dueDate);
60
+ dueDate.setHours(0, 0, 0, 0);
61
+ if (dueDate < today) {
62
+ // Overdue
63
+ const isDone = task.status.category?.toLowerCase() === 'done';
64
+ dueDateValue = isDone ? task.dueDate : chalk.red(task.dueDate);
65
+ }
66
+ else {
67
+ // Today or future
68
+ dueDateValue = chalk.green(task.dueDate);
69
+ }
70
+ }
71
+ infoTable.push(['Due Date', dueDateValue]);
54
72
  // Add labels to basic info table if present
55
73
  if (task.labels && task.labels.length > 0) {
56
74
  const labelsString = task.labels
@@ -103,6 +103,7 @@ export async function getTaskWithDetails(taskId) {
103
103
  'reporter',
104
104
  'created',
105
105
  'updated',
106
+ 'duedate',
106
107
  'comment',
107
108
  'parent',
108
109
  'subtasks',
@@ -148,6 +149,7 @@ export async function getTaskWithDetails(taskId) {
148
149
  description,
149
150
  status: {
150
151
  name: issue.fields.status?.name || 'Unknown',
152
+ category: issue.fields.status?.statusCategory?.key || 'unknown',
151
153
  },
152
154
  assignee: issue.fields.assignee ? {
153
155
  displayName: issue.fields.assignee.displayName || 'Unknown',
@@ -157,6 +159,7 @@ export async function getTaskWithDetails(taskId) {
157
159
  } : undefined,
158
160
  created: issue.fields.created || '',
159
161
  updated: issue.fields.updated || '',
162
+ dueDate: issue.fields.duedate || undefined,
160
163
  labels: issue.fields.labels || [],
161
164
  comments,
162
165
  parent,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jira-ai",
3
- "version": "0.3.13",
3
+ "version": "0.3.14",
4
4
  "description": "AI friendly Jira CLI to save context",
5
5
  "type": "module",
6
6
  "main": "dist/cli.js",