diff --git a/documentation.md b/documentation.md index b738b76..8f088ec 100644 --- a/documentation.md +++ b/documentation.md @@ -409,7 +409,7 @@ gtt report --issue_columns=iid --issue_columns=title --issue_columns=time_userna *Note: Available columns to choose from: `id`, `iid`, `title`, `project_id`, `project_namespace`, `description`, `labels`, `milestone`, `assignee`, `author`, -`closed`, `updated_at`, `created_at`, `state`, `spent`, `total_spent`, `total_estimate`* +`closed`, `updated_at`, `created_at`, `due_date`, `state`, `spent`, `total_spent`, `total_estimate`* *You can also include columns that show the total time spent by a specific user by following this convention: `time_username`* diff --git a/src/models/issue.js b/src/models/issue.js index ddf7c5c..d756505 100755 --- a/src/models/issue.js +++ b/src/models/issue.js @@ -90,6 +90,10 @@ class issue extends hasTimes { return this.config.toHumanReadable(this.timeSpent, this._type); } + get due_date() { + return this.data.due_date ? moment(this.data.due_date): null; + } + get total_spent() { return this.stats ? this.config.toHumanReadable(this.stats.total_time_spent, this._type) : null; }