Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit 6a26813

Browse files
committed
Add due date field for issues
1 parent 38c6b8e commit 6a26813

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

documentation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ gtt report --issue_columns=iid --issue_columns=title --issue_columns=time_userna
409409

410410
*Note: Available columns to choose from: `id`, `iid`, `title`, `project_id`,
411411
`project_namespace`, `description`, `labels`, `milestone`, `assignee`, `author`,
412-
`closed`, `updated_at`, `created_at`, `state`, `spent`, `total_spent`, `total_estimate`*
412+
`closed`, `updated_at`, `created_at`, `due_date`, `state`, `spent`, `total_spent`, `total_estimate`*
413413

414414
*You can also include columns that show the total time spent by a specific user
415415
by following this convention: `time_username`*

src/models/issue.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ class issue extends hasTimes {
9090
return this.config.toHumanReadable(this.timeSpent, this._type);
9191
}
9292

93+
get due_date() {
94+
return this.data.due_date ? moment(this.data.due_date): null;
95+
}
96+
9397
get total_spent() {
9498
return this.stats ? this.config.toHumanReadable(this.stats.total_time_spent, this._type) : null;
9599
}

0 commit comments

Comments
 (0)