summaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
Diffstat (limited to 'app/views')
-rw-r--r--app/views/issues/index.api.rsb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/views/issues/index.api.rsb b/app/views/issues/index.api.rsb
index 4bba32549..da60ea5c6 100644
--- a/app/views/issues/index.api.rsb
+++ b/app/views/issues/index.api.rsb
@@ -19,6 +19,11 @@ api.array :issues, api_meta(:total_count => @issue_count, :offset => @offset, :l
api.done_ratio issue.done_ratio
api.is_private issue.is_private
api.estimated_hours issue.estimated_hours
+ api.total_estimated_hours issue.total_estimated_hours
+ if User.current.allowed_to?(:view_time_entries, issue.project)
+ api.spent_hours(issue.spent_hours)
+ api.total_spent_hours(issue.total_spent_hours)
+ end
render_api_custom_values issue.visible_custom_field_values, api