jira-ai 0.2.8 → 0.2.9

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.
@@ -206,12 +206,14 @@ function formatProjectIssueTypes(projectKey, issueTypes) {
206
206
  // Display standard issue types
207
207
  if (standardTypes.length > 0) {
208
208
  output += chalk_1.default.bold('Standard Issue Types:') + '\n';
209
- const table = createTable(['Name', 'Type', 'Description'], [20, 15, 55]);
209
+ const table = createTable(['Name', 'ID', 'Hierarchy', 'Type', 'Description'], [18, 8, 10, 12, 42]);
210
210
  standardTypes.forEach((issueType) => {
211
211
  table.push([
212
212
  chalk_1.default.cyan(issueType.name),
213
+ chalk_1.default.gray(issueType.id),
214
+ chalk_1.default.magenta(issueType.hierarchyLevel.toString()),
213
215
  issueType.subtask ? chalk_1.default.yellow('Subtask') : chalk_1.default.green('Standard'),
214
- (0, utils_1.truncate)(issueType.description || chalk_1.default.gray('No description'), 55),
216
+ (0, utils_1.truncate)(issueType.description || chalk_1.default.gray('No description'), 42),
215
217
  ]);
216
218
  });
217
219
  output += table.toString() + '\n';
@@ -219,12 +221,14 @@ function formatProjectIssueTypes(projectKey, issueTypes) {
219
221
  // Display subtask types separately if they exist
220
222
  if (subtaskTypes.length > 0) {
221
223
  output += '\n' + chalk_1.default.bold('Subtask Types:') + '\n';
222
- const subtaskTable = createTable(['Name', 'Type', 'Description'], [20, 15, 55]);
224
+ const subtaskTable = createTable(['Name', 'ID', 'Hierarchy', 'Type', 'Description'], [18, 8, 10, 12, 42]);
223
225
  subtaskTypes.forEach((issueType) => {
224
226
  subtaskTable.push([
225
227
  chalk_1.default.cyan(issueType.name),
228
+ chalk_1.default.gray(issueType.id),
229
+ chalk_1.default.magenta(issueType.hierarchyLevel.toString()),
226
230
  chalk_1.default.yellow('Subtask'),
227
- (0, utils_1.truncate)(issueType.description || chalk_1.default.gray('No description'), 55),
231
+ (0, utils_1.truncate)(issueType.description || chalk_1.default.gray('No description'), 42),
228
232
  ]);
229
233
  });
230
234
  output += subtaskTable.toString() + '\n';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jira-ai",
3
- "version": "0.2.8",
3
+ "version": "0.2.9",
4
4
  "description": "CLI tool for interacting with Atlassian Jira",
5
5
  "main": "dist/cli.js",
6
6
  "bin": {
@@ -240,13 +240,15 @@ export function formatProjectIssueTypes(projectKey: string, issueTypes: IssueTyp
240
240
  // Display standard issue types
241
241
  if (standardTypes.length > 0) {
242
242
  output += chalk.bold('Standard Issue Types:') + '\n';
243
- const table = createTable(['Name', 'Type', 'Description'], [20, 15, 55]);
243
+ const table = createTable(['Name', 'ID', 'Hierarchy', 'Type', 'Description'], [18, 8, 10, 12, 42]);
244
244
 
245
245
  standardTypes.forEach((issueType) => {
246
246
  table.push([
247
247
  chalk.cyan(issueType.name),
248
+ chalk.gray(issueType.id),
249
+ chalk.magenta(issueType.hierarchyLevel.toString()),
248
250
  issueType.subtask ? chalk.yellow('Subtask') : chalk.green('Standard'),
249
- truncate(issueType.description || chalk.gray('No description'), 55),
251
+ truncate(issueType.description || chalk.gray('No description'), 42),
250
252
  ]);
251
253
  });
252
254
 
@@ -256,13 +258,15 @@ export function formatProjectIssueTypes(projectKey: string, issueTypes: IssueTyp
256
258
  // Display subtask types separately if they exist
257
259
  if (subtaskTypes.length > 0) {
258
260
  output += '\n' + chalk.bold('Subtask Types:') + '\n';
259
- const subtaskTable = createTable(['Name', 'Type', 'Description'], [20, 15, 55]);
261
+ const subtaskTable = createTable(['Name', 'ID', 'Hierarchy', 'Type', 'Description'], [18, 8, 10, 12, 42]);
260
262
 
261
263
  subtaskTypes.forEach((issueType) => {
262
264
  subtaskTable.push([
263
265
  chalk.cyan(issueType.name),
266
+ chalk.gray(issueType.id),
267
+ chalk.magenta(issueType.hierarchyLevel.toString()),
264
268
  chalk.yellow('Subtask'),
265
- truncate(issueType.description || chalk.gray('No description'), 55),
269
+ truncate(issueType.description || chalk.gray('No description'), 42),
266
270
  ]);
267
271
  });
268
272