diff --git a/app/controllers/planning_controller.rb b/app/controllers/planning_controller.rb
index c49582a..6b7c384 100644
--- a/app/controllers/planning_controller.rb
+++ b/app/controllers/planning_controller.rb
@@ -85,6 +85,7 @@ def add_issue(issue)
:project_name => prj[:name],
:tracker => tracker,
:name => issue[:subject],
+ :estimated_time => issue[:estimated_hours],
:description => issue[:description],
:leaf => issue.leaf?,
:parent => issue.parent_issue_id,
diff --git a/assets/javascripts/planning.js b/assets/javascripts/planning.js
index c377e39..f3b62d4 100644
--- a/assets/javascripts/planning.js
+++ b/assets/javascripts/planning.js
@@ -250,6 +250,7 @@ PlanningIssue.prototype._showTooltip = function ()
'
' + this.t('parent_task') + ': | ' + parent_issue + ' |
' +
'' + this.t('start_date') + ': | ' + this.chart.formatDate(this.start_date) + ' |
' +
'' + this.t('due_date') + ': | ' + this.chart.formatDate(this.due_date) + ' |
' +
+ '' + this.t('est_time') + ': | ' + this.estimated_time + ' |
' +
'' + this.t('leaf_task') + ': | ' + (this.leaf ? this.t('yes') : this.t('no')) + ' |
' +
'' + this.t('is_closed') + ': | ' + (this.closed ? this.t('yes') : this.t('no')) + ' |
' +
'' + this.t('field_done_ratio') + ': | ' + (this.progress) + '% |
' +
@@ -421,6 +422,7 @@ function PlanningChart(options)
parent_task: 'Parent task',
start_date: 'Start date',
due_date: 'Due date',
+ est_time: 'Estimated time',
description: 'Description',
leaf_task: 'Leaf task',
milestone: 'Milestone',
@@ -1826,6 +1828,7 @@ function PlanningIssue(data)
this.due_date = null;
this.name = data.name;
+ this.estimated_time = data.estimated_time;
this.description = data.description;
this.project = data.project_name;
this.project_identifier = data.project_identifier;