Actions
Feature #14717
closedAPI value for spent_hours does not include the sum of the spent_hours of the subtasks
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
REST API
Target version:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Duplicate
Description
When querying an issue with the REST API (http://www.redmine.org/projects/redmine/wiki/Rest_Issues#Showing-an-issue) the value returned for spent_hours does not include the sum of the spent_hours of the subtasks.
This behaviour is different to estimated_time (which does show the sum of the estimates of the subtasks)
It would also be good to return spent hours when listing all Redmine issues (http://www.redmine.org/projects/redmine/wiki/Rest_Issues#Listing-issues)
Files
Related issues
Updated by David Spackman over 11 years ago
For my use I did the follow quick fix
Added a new value to the API for (GET /issues/[id].[format]) to return- total_spent_hours : Total hours spent on including sum of the spent_hours of the subtasks
- spent_hours : Hours spent on the parent task
- total_spent_hours : Total hours spent on including sum of the spent_hours of the subtasks
Updated by Go MAEDA almost 9 years ago
- Status changed from New to Closed
- Resolution set to Duplicate
Implemented by #21757, will be available as of Redmine 3.3.0.
Updated by Go MAEDA almost 9 years ago
- Is duplicate of Feature #21757: Add Total spent hours and Estimated hours to the REST API response added
Actions